java.lang.Object
org.libsdl.event.SDLEvent
org.libsdl.event.SDLJoyBallEvent
- public class SDLJoyBallEvent
- extends SDLEvent
The SDLJoyBallEvent represents a joystick trackball motion
event.
- Version:
- $revision$
|
Field Summary |
private short |
ball
|
private short |
which
|
private short |
xrel
|
private short |
yrel
|
| 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 |
protected |
SDLJoyBallEvent(short type,
short which,
short ball,
short xrel,
short yrel)
Constructs a new SDLJoyBallEvent with the given type,
which, ball, xrel, and yrel parameters. |
|
Method Summary |
short |
getBall()
Return the ball of this joystick trackball motion event. |
short |
getWhich()
Return the 'which' of this joystick trackball motion event. |
short |
getXrel()
Return the xrel of this joystick trackball motion event. |
short |
getYrel()
Return the yrel of this joystick trackball motion event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
which
private short which
ball
private short ball
xrel
private short xrel
yrel
private short yrel
SDLJoyBallEvent
protected SDLJoyBallEvent(short type,
short which,
short ball,
short xrel,
short yrel)
- Constructs a new
SDLJoyBallEvent with the given type,
which, ball, xrel, and yrel parameters.
getWhich
public short getWhich()
- Return the 'which' of this joystick trackball motion event.
getBall
public short getBall()
- Return the ball of this joystick trackball motion event.
getXrel
public short getXrel()
- Return the xrel of this joystick trackball motion event.
getYrel
public short getYrel()
- Return the yrel of this joystick trackball motion event.