public abstract class BaseOnScreenControl extends HUD implements IOnSceneTouchListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
BaseOnScreenControl.IOnScreenControlListener |
IUpdateHandler.IUpdateHandlerMatcherIDisposable.AlreadyDisposedExceptionmCameramChildScene, mParentScene, mTouchAreasmChildren, mChildrenIgnoreUpdate, mChildrenSortPending, mChildrenVisible, mColor, mCullingEnabled, mDisposed, mIgnoreUpdate, mRotation, mRotationCenterX, mRotationCenterY, mScaleCenterX, mScaleCenterY, mScaleX, mScaleY, mSkewCenterX, mSkewCenterY, mSkewX, mSkewY, mTag, mVisible, mX, mY, mZIndexTAG_INVALID| Constructor and Description |
|---|
BaseOnScreenControl(float pX,
float pY,
Camera pCamera,
ITextureRegion pControlBaseTextureRegion,
ITextureRegion pControlKnobTextureRegion,
float pTimeBetweenUpdates,
VertexBufferObjectManager pVertexBufferObjectManager,
BaseOnScreenControl.IOnScreenControlListener pOnScreenControlListener) |
| Modifier and Type | Method and Description |
|---|---|
Sprite |
getControlBase() |
Sprite |
getControlKnob() |
BaseOnScreenControl.IOnScreenControlListener |
getOnScreenControlListener() |
protected void |
onHandleControlBaseLeft()
When the touch happened outside of the bounds of this OnScreenControl.
|
protected boolean |
onHandleControlBaseTouched(TouchEvent pSceneTouchEvent,
float pTouchAreaLocalX,
float pTouchAreaLocalY) |
protected void |
onHandleControlKnobReleased()
When the OnScreenControl was released.
|
boolean |
onSceneTouchEvent(Scene pScene,
TouchEvent pSceneTouchEvent)
Called when a
TouchEvent is dispatched to a Scene. |
protected void |
onUpdateControlKnob(float pRelativeX,
float pRelativeY) |
void |
refreshControlKnobPosition() |
centerShapeInCamera, centerShapeInCameraHorizontally, centerShapeInCameraVertically, getCamera, onApplyMatrix, onChildSceneTouchEvent, onSceneTouchEvent, setCameraback, clearChildScene, clearTouchAreas, getBackground, getChildScene, getOnAreaTouchListener, getOnSceneTouchListener, getSecondsElapsedTotal, getTouchAreas, hasChildScene, hasOnAreaTouchListener, hasOnSceneTouchListener, isBackgroundEnabled, isOnSceneTouchListenerBindingOnActionDownEnabled, isTouchAreaBindingOnActionDownEnabled, isTouchAreaBindingOnActionMoveEnabled, onManagedDraw, onManagedUpdate, postRunnable, registerTouchArea, reset, setBackground, setBackgroundEnabled, setChildScene, setChildScene, setChildSceneModal, setOnAreaTouchListener, setOnAreaTouchTraversalBackToFront, setOnAreaTouchTraversalFrontToBack, setOnSceneTouchListener, setOnSceneTouchListenerBindingOnActionDownEnabled, setParent, setTouchAreaBindingOnActionDownEnabled, setTouchAreaBindingOnActionMoveEnabled, unregisterTouchArea, unregisterTouchAreasapplyRotation, applyScale, applySkew, applyTranslation, attachChild, callOnChildren, callOnChildren, clearEntityModifiers, clearUpdateHandlers, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertLocalToSceneCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, convertSceneToLocalCoordinates, detachChild, detachChild, detachChild, detachChildren, detachChildren, detachSelf, dispose, draw, finalize, getAlpha, getBlue, getChildByIndex, getChildByMatcher, getChildByTag, getChildCount, getColor, getEntityModifierCount, getFirstChild, getGreen, getLastChild, getLocalToParentTransformation, getLocalToSceneTransformation, getParent, getParentToLocalTransformation, getRed, getRotation, getRotationCenterX, getRotationCenterY, getScaleCenterX, getScaleCenterY, getScaleX, getScaleY, getSceneCenterCoordinates, getSceneCenterCoordinates, getSceneToLocalTransformation, getSkewCenterX, getSkewCenterY, getSkewX, getSkewY, getTag, getUpdateHandlerCount, getUserData, getX, getY, getZIndex, hasParent, isChildrenIgnoreUpdate, isChildrenVisible, isCulled, isCullingEnabled, isDisposed, isIgnoreUpdate, isRotated, isRotatedOrScaledOrSkewed, isScaled, isSkewed, isVisible, onApplyTransformations, onAttached, onDetached, onDraw, onUpdate, onUpdateColor, postDraw, preDraw, query, query, queryFirst, queryFirstForSubclass, queryForSubclass, queryForSubclass, registerEntityModifier, registerUpdateHandler, setAlpha, setBlue, setChildrenIgnoreUpdate, setChildrenVisible, setColor, setColor, setColor, setCullingEnabled, setGreen, setIgnoreUpdate, setPosition, setPosition, setRed, setRotation, setRotationCenter, setRotationCenterX, setRotationCenterY, setScale, setScale, setScaleCenter, setScaleCenterX, setScaleCenterY, setScaleX, setScaleY, setSkew, setSkew, setSkewCenter, setSkewCenterX, setSkewCenterY, setSkewX, setSkewY, setTag, setUserData, setVisible, setX, setY, setZIndex, sortChildren, sortChildren, sortChildren, toString, toString, unregisterEntityModifier, unregisterEntityModifiers, unregisterUpdateHandler, unregisterUpdateHandlerspublic BaseOnScreenControl(float pX,
float pY,
Camera pCamera,
ITextureRegion pControlBaseTextureRegion,
ITextureRegion pControlKnobTextureRegion,
float pTimeBetweenUpdates,
VertexBufferObjectManager pVertexBufferObjectManager,
BaseOnScreenControl.IOnScreenControlListener pOnScreenControlListener)
public Sprite getControlBase()
public Sprite getControlKnob()
public BaseOnScreenControl.IOnScreenControlListener getOnScreenControlListener()
public boolean onSceneTouchEvent(Scene pScene, TouchEvent pSceneTouchEvent)
IOnSceneTouchListenerTouchEvent is dispatched to a Scene.onSceneTouchEvent in interface IOnSceneTouchListenerpScene - The Scene that the TouchEvent has been dispatched to.pSceneTouchEvent - The TouchEvent object containing full information about the event.true if this IOnSceneTouchListener has consumed the TouchEvent, false otherwise.public void refreshControlKnobPosition()
protected void onHandleControlBaseLeft()
protected void onHandleControlKnobReleased()
protected boolean onHandleControlBaseTouched(TouchEvent pSceneTouchEvent, float pTouchAreaLocalX, float pTouchAreaLocalY)
protected void onUpdateControlKnob(float pRelativeX,
float pRelativeY)
pRelativeX - from -0.5 (left) to 0.5 (right).pRelativeY - from -0.5 (top) to 0.5 (bottom).