Package arc.scene.event
Class InputEvent
java.lang.Object
arc.scene.event.SceneEvent
arc.scene.event.InputEvent
- All Implemented Interfaces:
Pool.Poolable
Event for actor input: touch, mouse, keyboard, and scroll.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Types of low-level input events supported by scene2d. -
Field Summary
Modifier and TypeFieldDescriptionchar
int
float
float
float
float
Fields inherited from class arc.scene.event.SceneEvent
bubbles, cancelled, capture, handled, listenerActor, stopped, targetActor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true of this event is a touchUp triggered byScene.cancelTouchFocus()
.void
reset()
Resets the object for reuse.toCoordinates
(Element actor, Vec2 actorCoords) Sets actorCoords to this event's coordinates relative to the specified actor.toString()
Methods inherited from class arc.scene.event.SceneEvent
cancel, handle, stop
-
Field Details
-
type
-
stageX
public float stageX -
stageY
public float stageY -
pointer
public int pointer -
scrollAmountX
public float scrollAmountX -
scrollAmountY
public float scrollAmountY -
keyCode
-
character
public char character
-
-
Constructor Details
-
InputEvent
public InputEvent()
-
-
Method Details
-
reset
public void reset()Description copied from interface:Pool.Poolable
Resets the object for reuse. Object references should be nulled and fields may be set to default values.- Specified by:
reset
in interfacePool.Poolable
- Overrides:
reset
in classSceneEvent
-
toCoordinates
Sets actorCoords to this event's coordinates relative to the specified actor.- Parameters:
actorCoords
- Output for resulting coordinates.
-
isTouchFocusCancel
public boolean isTouchFocusCancel()Returns true of this event is a touchUp triggered byScene.cancelTouchFocus()
. -
toString
-