com.jme.input.util
Class UtilInputHandlerDevice

java.lang.Object
  extended by com.jme.input.InputHandlerDevice
      extended by com.jme.input.util.UtilInputHandlerDevice

 class UtilInputHandlerDevice
extends InputHandlerDevice


Field Summary
static java.lang.String DEVICE_UTIL
           
 
Constructor Summary
UtilInputHandlerDevice()
           
 
Method Summary
(package private)  void addAxis(SyntheticAxis axis)
           
(package private)  void addButton(SyntheticButton button)
           
protected  void createTriggers(InputActionInterface action, int axisIndex, int buttonIndex, boolean allowRepeats, InputHandler inputHandler)
          Creates device specific trigger(s) for specified axes and buttons (the triggers register themselves at the inputHandler).
(package private) static UtilInputHandlerDevice get()
           
(package private)  void removeAxis(SyntheticAxis axis)
           
(package private)  void removeButton(SyntheticButton button)
           
 
Methods inherited from class com.jme.input.InputHandlerDevice
getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEVICE_UTIL

public static final java.lang.String DEVICE_UTIL
See Also:
Constant Field Values
Constructor Detail

UtilInputHandlerDevice

public UtilInputHandlerDevice()
Method Detail

createTriggers

protected void createTriggers(InputActionInterface action,
                              int axisIndex,
                              int buttonIndex,
                              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 activation
axisIndex - axis this trigger is responsible for
buttonIndex - button this trigger is responsible for
allowRepeats - true to allow repeats
inputHandler - input handler for the triggers

get

static UtilInputHandlerDevice get()
Returns:
only instance of UtilInputHandlerDevice

addAxis

void addAxis(SyntheticAxis axis)

removeAxis

void removeAxis(SyntheticAxis axis)

addButton

void addButton(SyntheticButton button)

removeButton

void removeButton(SyntheticButton button)