protected class TestJoystick.JoystickEventListener extends java.lang.Object implements RawInputListener
| Modifier | Constructor and Description |
|---|---|
protected |
JoystickEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginInput()
Called before a batch of input will be sent to this
RawInputListener. |
void |
endInput()
Called after a batch of input was sent to this
RawInputListener. |
void |
onJoyAxisEvent(JoyAxisEvent evt)
Invoked on joystick axis events.
|
void |
onJoyButtonEvent(JoyButtonEvent evt)
Invoked on joystick button presses.
|
void |
onKeyEvent(KeyInputEvent evt)
Invoked on keyboard key press or release events.
|
void |
onMouseButtonEvent(MouseButtonEvent evt)
Invoked on mouse button events.
|
void |
onMouseMotionEvent(MouseMotionEvent evt)
Invoked on mouse movement/motion events.
|
void |
onTouchEvent(TouchEvent evt)
Invoked on touchscreen touch events.
|
public void onJoyAxisEvent(JoyAxisEvent evt)
RawInputListeneronJoyAxisEvent in interface RawInputListenerevt - information about the eventpublic void onJoyButtonEvent(JoyButtonEvent evt)
RawInputListeneronJoyButtonEvent in interface RawInputListenerevt - information about the eventpublic void beginInput()
RawInputListenerRawInputListener.beginInput in interface RawInputListenerpublic void endInput()
RawInputListenerRawInputListener.
The listener should set the consumed flag
on any events that have been consumed either at this call or previous calls.endInput in interface RawInputListenerpublic void onMouseMotionEvent(MouseMotionEvent evt)
RawInputListeneronMouseMotionEvent in interface RawInputListenerevt - information about the eventpublic void onMouseButtonEvent(MouseButtonEvent evt)
RawInputListeneronMouseButtonEvent in interface RawInputListenerevt - information about the eventpublic void onKeyEvent(KeyInputEvent evt)
RawInputListeneronKeyEvent in interface RawInputListenerevt - information about the eventpublic void onTouchEvent(TouchEvent evt)
RawInputListeneronTouchEvent in interface RawInputListenerevt - information about the event