Interface RawInputListener

All Known Implementing Classes:
InputManager, InputSystemJme

public interface RawInputListener
An interface used for receiving raw input from devices.
  • Method Details

    • beginInput

      void beginInput()
      Called before a batch of input will be sent to this RawInputListener.
    • endInput

      void endInput()
      Called after a batch of input was sent to this RawInputListener. The listener should set the consumed flag on any events that have been consumed either at this call or previous calls.
    • onJoyAxisEvent

      void onJoyAxisEvent(JoyAxisEvent evt)
      Invoked on joystick axis events.
      Parameters:
      evt - information about the event
    • onJoyButtonEvent

      void onJoyButtonEvent(JoyButtonEvent evt)
      Invoked on joystick button presses.
      Parameters:
      evt - information about the event
    • onMouseMotionEvent

      void onMouseMotionEvent(MouseMotionEvent evt)
      Invoked on mouse movement/motion events.
      Parameters:
      evt - information about the event
    • onMouseButtonEvent

      void onMouseButtonEvent(MouseButtonEvent evt)
      Invoked on mouse button events.
      Parameters:
      evt - information about the event
    • onKeyEvent

      void onKeyEvent(KeyInputEvent evt)
      Invoked on keyboard key press or release events.
      Parameters:
      evt - information about the event
    • onTouchEvent

      void onTouchEvent(TouchEvent evt)
      Invoked on touchscreen touch events.
      Parameters:
      evt - information about the event