Package com.simsilica.lemur.event
Class DefaultRawInputListener
java.lang.Object
com.simsilica.lemur.event.DefaultRawInputListener
- All Implemented Interfaces:
RawInputListener
- Direct Known Subclasses:
KeyInterceptState.KeyObserver,MouseAppState.MouseObserver,TouchAppState.TouchObserver
Convenient base class providing default implementations for
all RawInputListener methods.
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultRawInputListener
public DefaultRawInputListener()
-
-
Method Details
-
beginInput
public void beginInput()Description copied from interface:RawInputListenerCalled before a batch of input will be sent to thisRawInputListener.- Specified by:
beginInputin interfaceRawInputListener
-
endInput
public void endInput()Description copied from interface:RawInputListenerCalled 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.- Specified by:
endInputin interfaceRawInputListener
-
onJoyAxisEvent
Description copied from interface:RawInputListenerInvoked on joystick axis events.- Specified by:
onJoyAxisEventin interfaceRawInputListener- Parameters:
evt- information about the event
-
onJoyButtonEvent
Description copied from interface:RawInputListenerInvoked on joystick button presses.- Specified by:
onJoyButtonEventin interfaceRawInputListener- Parameters:
evt- information about the event
-
onMouseMotionEvent
Description copied from interface:RawInputListenerInvoked on mouse movement/motion events.- Specified by:
onMouseMotionEventin interfaceRawInputListener- Parameters:
evt- information about the event
-
onMouseButtonEvent
Description copied from interface:RawInputListenerInvoked on mouse button events.- Specified by:
onMouseButtonEventin interfaceRawInputListener- Parameters:
evt- information about the event
-
onKeyEvent
Description copied from interface:RawInputListenerInvoked on keyboard key press or release events.- Specified by:
onKeyEventin interfaceRawInputListener- Parameters:
evt- information about the event
-
onTouchEvent
Description copied from interface:RawInputListenerInvoked on touchscreen touch events.- Specified by:
onTouchEventin interfaceRawInputListener- Parameters:
evt- information about the event
-