com.jme.input.mouse
Class MouseInputHandlerDevice

java.lang.Object
  extended by com.jme.input.InputHandlerDevice
      extended by com.jme.input.mouse.MouseInputHandlerDevice

public class MouseInputHandlerDevice
extends InputHandlerDevice

Creates InputHandler triggers for mouse support.


Nested Class Summary
protected  class MouseInputHandlerDevice.MouseAxisTrigger
           
protected  class MouseInputHandlerDevice.MouseButtonTrigger
           
 
Constructor Summary
MouseInputHandlerDevice()
           
 
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).
 TriggersMouseInputListener getMouseListener()
           
 
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

MouseInputHandlerDevice

public MouseInputHandlerDevice()
Method Detail

getMouseListener

public TriggersMouseInputListener getMouseListener()

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