sdljava.event
public class SDLMouseButtonEvent extends SDLEvent
Mouse wheel events are reported as buttons 4 (up) and 5 (down). Two events are generated i.e. you get a SDL_MOUSEBUTTONDOWN followed by a SDL_MOUSEBUTTONUP event.
Version: $Id: SDLMouseButtonEvent.java,v 1.12 2005/01/30 05:15:16 ivan_ganza Exp $
Field Summary | |
---|---|
SDL_MouseButtonEvent | swigMouseButtonEvent
Reference to the SWIG generated
|
Method Summary | |
---|---|
int | getButton()
The mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE,
SDL_BUTTON_RIGHT, SDL_BUTTON_WHEELUP, SDL_BUTTON_WHEELDOWN)
|
SDLPressedState | getState()
Get the state of the button
|
SDL_MouseButtonEvent | getSwigMouseButtonEvent()
Gets the value of swigMouseButtonEvent
|
int | getType()
The type of the this event
|
int | getWhich()
Describe getWhich method here.
|
int | getX()
The X co-oridnate
|
int | getY()
The Y co-ordinate
|
void | setSwigMouseButtonEvent(SDL_MouseButtonEvent argSwigMouseButtonEvent)
Sets the value of swigMouseButtonEvent
|
String | toString() |
String | translateButton(int button)
Get string represenation of button value
|
Returns: a short
value
Returns: the state of the button
Returns: the value of swigMouseButtonEvent
Returns: The type of event
getWhich
method here.
Returns: a short
value
Returns: an int
value
Returns: an int
value
Parameters: argSwigMouseButtonEvent Value to assign to this.swigMouseButtonEvent
Returns: a String
representation of myself
Parameters: button an int
value
Returns: the string represenation of button value