Package com.jme3.input.controls
Class JoyAxisTrigger
java.lang.Object
com.jme3.input.controls.JoyAxisTrigger
- All Implemented Interfaces:
Trigger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getJoyId()
getName()
boolean
static int
joyAxisHash
(int joyId, int joyAxis, boolean negative) int
Returns the hash code for the trigger.
-
Constructor Details
-
JoyAxisTrigger
public JoyAxisTrigger(int joyId, int axisId, boolean negative) - Parameters:
joyId
- which joystickaxisId
- which joystick axisnegative
- true to negate input values, false to leave unchanged
-
-
Method Details
-
joyAxisHash
public static int joyAxisHash(int joyId, int joyAxis, boolean negative) -
getAxisId
public int getAxisId() -
getJoyId
public int getJoyId() -
isNegative
public boolean isNegative() -
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.
-