com.jme.input.keyboard
Class KeyboardInputHandlerDevice

java.lang.Object
  extended by com.jme.input.InputHandlerDevice
      extended by com.jme.input.keyboard.KeyboardInputHandlerDevice

public class KeyboardInputHandlerDevice
extends InputHandlerDevice

Creates InputHandler triggers for keyboard support.


Nested Class Summary
protected  class KeyboardInputHandlerDevice.KeyTrigger
           
 
Constructor Summary
KeyboardInputHandlerDevice()
           
 
Method Summary
protected  void createTriggers(InputActionInterface action, int axis, int button, boolean allowRepeats, InputHandler inputHandler)
          Creates device specific trigger(s) for specified axes and buttons (the triggers register themselves at the inputHandler).
 TriggersKeyboardInputListener getKeyboardListener()
           
 
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
 

Constructor Detail

KeyboardInputHandlerDevice

public KeyboardInputHandlerDevice()
Method Detail

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 activation
axis - axis this trigger is responsible for
button - button this trigger is responsible for
allowRepeats - true to allow repeats
inputHandler - input handler for the triggers

getKeyboardListener

public TriggersKeyboardInputListener getKeyboardListener()