Package com.simsilica.lemur.input
Class InputMapper.InputObserver
java.lang.Object
com.simsilica.lemur.input.InputMapper.InputObserver
- All Implemented Interfaces:
RawInputListener
- Enclosing class:
InputMapper
-
Constructor Summary
Constructors -
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
.protected void
instantUpdate
(Axis a, double value) 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.
-
Constructor Details
-
InputObserver
protected InputObserver()
-
-
Method Details
-
onJoyAxisEvent
Description copied from interface:RawInputListener
Invoked on joystick axis events.- Specified by:
onJoyAxisEvent
in interfaceRawInputListener
- Parameters:
evt
- information about the event
-
onJoyButtonEvent
Description copied from interface:RawInputListener
Invoked on joystick button presses.- Specified by:
onJoyButtonEvent
in interfaceRawInputListener
- Parameters:
evt
- information about the event
-
beginInput
public void beginInput()Description copied from interface:RawInputListener
Called before a batch of input will be sent to thisRawInputListener
.- Specified by:
beginInput
in interfaceRawInputListener
-
endInput
public void endInput()Description copied from interface:RawInputListener
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.- Specified by:
endInput
in interfaceRawInputListener
-
instantUpdate
-
onMouseMotionEvent
Description copied from interface:RawInputListener
Invoked on mouse movement/motion events.- Specified by:
onMouseMotionEvent
in interfaceRawInputListener
- Parameters:
evt
- information about the event
-
onMouseButtonEvent
Description copied from interface:RawInputListener
Invoked on mouse button events.- Specified by:
onMouseButtonEvent
in interfaceRawInputListener
- Parameters:
evt
- information about the event
-
onKeyEvent
Description copied from interface:RawInputListener
Invoked on keyboard key press or release events.- Specified by:
onKeyEvent
in interfaceRawInputListener
- Parameters:
evt
- information about the event
-
onTouchEvent
Description copied from interface:RawInputListener
Invoked on touchscreen touch events.- Specified by:
onTouchEvent
in interfaceRawInputListener
- Parameters:
evt
- information about the event
-