Package com.jme3.input
Interface RawInputListener
- All Known Implementing Classes:
InputManager,InputSystemJme
public interface RawInputListener
An interface used for receiving raw input from devices.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled before a batch of input will be sent to thisRawInputListener.voidendInput()Called after a batch of input was sent to thisRawInputListener.voidInvoked on joystick axis events.voidInvoked on joystick button presses.voidonKeyEvent(KeyInputEvent evt) Invoked on keyboard key press or release events.voidInvoked on mouse button events.voidInvoked on mouse movement/motion events.voidonTouchEvent(TouchEvent evt) Invoked on touchscreen touch events.
-
Method Details
-
beginInput
void beginInput()Called before a batch of input will be sent to thisRawInputListener. -
endInput
void endInput()Called after a batch of input was sent to thisRawInputListener. The listener should set theconsumed flagon any events that have been consumed either at this call or previous calls. -
onJoyAxisEvent
Invoked on joystick axis events.- Parameters:
evt- information about the event
-
onJoyButtonEvent
Invoked on joystick button presses.- Parameters:
evt- information about the event
-
onMouseMotionEvent
Invoked on mouse movement/motion events.- Parameters:
evt- information about the event
-
onMouseButtonEvent
Invoked on mouse button events.- Parameters:
evt- information about the event
-
onKeyEvent
Invoked on keyboard key press or release events.- Parameters:
evt- information about the event
-
onTouchEvent
Invoked on touchscreen touch events.- Parameters:
evt- information about the event
-