java.lang.Object
org.libsdl.event.SDLEvent
org.libsdl.event.SDLJoyButtonEvent
- public class SDLJoyButtonEvent
- extends SDLEvent
The SDLJoyButtonEvent represents a joystick button
event.
- Version:
- $revision$
| 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 |
SDLJoyButtonEvent(short type,
short which,
short button,
short state)
Constructs a new SDLJoyButtonEvent with the given type,
which, button, and state parameters. |
|
Method Summary |
short |
getButton()
Return the button of this joystick button event. |
short |
getState()
Return the state of this joystick button event. |
short |
getWhich()
Return the 'which' of this joystick button event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
which
private short which
button
private short button
state
private short state
SDLJoyButtonEvent
public SDLJoyButtonEvent(short type,
short which,
short button,
short state)
- Constructs a new
SDLJoyButtonEvent with the given type,
which, button, and state parameters.
getWhich
public short getWhich()
- Return the 'which' of this joystick button event.
getButton
public short getButton()
- Return the button of this joystick button event.
getState
public short getState()
- Return the state of this joystick button event.