java.lang.Object
org.libsdl.event.SDLEvent
org.libsdl.event.SDLJoyAxisEvent
- public class SDLJoyAxisEvent
- extends SDLEvent
The SDLJoyAxisEvent represents a joystick axis motion
event.
- Version:
- $revision$
|
Field Summary |
private short |
axis
|
private short |
value
|
private short |
which
|
| Fields inherited from class org.libsdl.event.SDLEvent |
SDL_ACTIVEEVENT, SDL_EVENT_RESERVED1, SDL_EVENT_RESERVED2, SDL_EVENT_RESERVED3, SDL_EVENT_RESERVED4, SDL_EVENT_RESERVED5, SDL_EVENT_RESERVED6, SDL_EVENT_RESERVED7, SDL_EVENT_RESERVEDA, SDL_EVENT_RESERVEDB, SDL_JOYAXISMOTION, SDL_JOYBALLMOTION, SDL_JOYBUTTONDOWN, SDL_JOYBUTTONUP, SDL_JOYHATMOTION, SDL_KEYDOWN, SDL_KEYUP, SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP, SDL_MOUSEMOTION, SDL_NOEVENT, SDL_NUMEVENTS, SDL_QUIT, SDL_SYSWMEVENT, SDL_USEREVENT, SDL_VIDEORESIZE |
|
Constructor Summary |
SDLJoyAxisEvent(short type,
short which,
short axis,
short value)
Constructs a new SDLJoyAxisEvent with the given type,
which, axis, and value parameters. |
|
Method Summary |
short |
getAxis()
Return the axis of this joystick axis motion event. |
short |
getValue()
Return the value of this joystick axis motion event. |
short |
getWhich()
Return the 'which' of this joystick axis motion event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
which
private short which
axis
private short axis
value
private short value
SDLJoyAxisEvent
public SDLJoyAxisEvent(short type,
short which,
short axis,
short value)
- Constructs a new
SDLJoyAxisEvent with the given type,
which, axis, and value parameters.
getWhich
public short getWhich()
- Return the 'which' of this joystick axis motion event.
getAxis
public short getAxis()
- Return the axis of this joystick axis motion event.
getValue
public short getValue()
- Return the value of this joystick axis motion event.