Package com.jme3.input
Class RawInputListenerAdapter
java.lang.Object
com.jme3.input.RawInputListenerAdapter
- All Implemented Interfaces:
RawInputListener
An abstract adapter class for
RawInputListener.
This class provides empty implementations for all methods in the
RawInputListener interface, making it easier to create custom
listeners by extending this class and overriding only the methods of
interest.-
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
-
RawInputListenerAdapter
public RawInputListenerAdapter()
-
-
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
-