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 TypeMethodDescriptionvoid
Called before a batch of input will be sent to thisRawInputListener
.void
endInput()
Called after a batch of input was sent to thisRawInputListener
.void
Invoked on joystick axis events.void
Invoked on joystick button presses.void
onKeyEvent
(KeyInputEvent evt) Invoked on keyboard key press or release events.void
Invoked on mouse button events.void
Invoked on mouse movement/motion events.void
onTouchEvent
(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 flag
on 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
-