com.jme.input.joystick
Class JoystickInputHandlerDevice
java.lang.Object
com.jme.input.InputHandlerDevice
com.jme.input.joystick.JoystickInputHandlerDevice
public class JoystickInputHandlerDevice
- extends InputHandlerDevice
Creates InputHandler triggers for joystick support.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
joystick
protected final Joystick joystick
JoystickInputHandlerDevice
public JoystickInputHandlerDevice(Joystick joystick,
java.lang.String name)
getJoystickListener
public TriggersJoystickInputListener getJoystickListener()
createTriggers
protected void createTriggers(InputActionInterface action,
int axis,
int button,
boolean allowRepeats,
InputHandler inputHandler)
- Description copied from class:
InputHandlerDevice
- Creates device specific trigger(s) for specified axes and buttons (the triggers register themselves at the
inputHandler).
- Specified by:
createTriggers
in class InputHandlerDevice
- Parameters:
action
- action that will be invoked upon trigger activationaxis
- axis this trigger is responsible forbutton
- button this trigger is responsible forallowRepeats
- true to allow repeatsinputHandler
- input handler for the triggers