Package arc.input
Class InputDevice
java.lang.Object
arc.input.InputDevice
- Direct Known Subclasses:
Controller
,KeyboardDevice
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract float
abstract boolean
abstract boolean
isReleased
(KeyCode key) abstract boolean
abstract String
name()
void
Called at the end of the update loop.void
Called at the start of the update loop.abstract InputDevice.DeviceType
type()
-
Constructor Details
-
InputDevice
public InputDevice()
-
-
Method Details
-
postUpdate
public void postUpdate()Called at the end of the update loop. -
preUpdate
public void preUpdate()Called at the start of the update loop. -
name
-
type
-
isPressed
- Returns:
- whether the button is currently pressed.
-
isTapped
- Returns:
- whether button was pressed down this frame.
-
isReleased
- Returns:
- whether this button was released this frame.
-
getAxis
- Returns:
- an axis tilt value, usually -1 to 1; 0 for non-axes.
-