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