Package com.jme3.input.controls
Class JoyButtonTrigger
java.lang.Object
com.jme3.input.controls.JoyButtonTrigger
- All Implemented Interfaces:
Trigger
-
Constructor Summary
ConstructorDescriptionJoyButtonTrigger
(int joyId, int buttonId) UseJoystick.assignButton(java.lang.String, int)
instead. -
Method Summary
Modifier and TypeMethodDescriptionint
int
getJoyId()
getName()
static int
joyButtonHash
(int joyId, int joyButton) int
Returns the hash code for the trigger.
-
Constructor Details
-
JoyButtonTrigger
public JoyButtonTrigger(int joyId, int buttonId) UseJoystick.assignButton(java.lang.String, int)
instead.- Parameters:
joyId
- the ID of a joystickbuttonId
- the index of a joystick button
-
-
Method Details
-
joyButtonHash
public static int joyButtonHash(int joyId, int joyButton) -
getAxisId
public int getAxisId() -
getJoyId
public int getJoyId() -
getName
-
triggerHashCode
public int triggerHashCode()Description copied from interface:Trigger
Returns the hash code for the trigger.- Specified by:
triggerHashCode
in interfaceTrigger
- Returns:
- the hash code for the trigger.
-