Package com.simsilica.lemur.input
Class InputDevice
java.lang.Object
com.simsilica.lemur.input.InputDevice
Represents a logical input device like a specific game controller.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the InputDevice-specific version of the specified Axis.Return the InputDevice-specific version of the specified Button.boolean
getId()
getName()
int
hashCode()
static InputDevice
joystick
(int id) Creates a new logical joystick with the specified ID.toString()
-
Field Details
-
JOYSTICK1
-
JOYSTICK2
-
-
Constructor Details
-
InputDevice
-
-
Method Details
-
joystick
Creates a new logical joystick with the specified ID. Note: to map reported events IDs should be one-based, ie: first joystick will be reported as InputDevice(1), second as InputDevice(2), etc. -
button
Return the InputDevice-specific version of the specified Button. -
axis
Return the InputDevice-specific version of the specified Axis. -
getId
-
getName
-
hashCode
public int hashCode() -
equals
-
toString
-