sdljava.event
public class SDLMouseMotionEvent extends SDLEvent
If the cursor is hidden (SDL_ShowCursor(0)) and the input is grabbed (SDL_WM_GrabInput(SDL_GRAB_ON)), then the mouse will give relative motion events even when the cursor reaches the edge of the screen. This is currently only implemented on Windows and Linux/Unix-alikes.
Version: $Id: SDLMouseMotionEvent.java,v 1.10 2005/02/10 04:19:45 ivan_ganza Exp $
Field Summary | |
---|---|
SDL_MouseMotionEvent | swigMouseMotionEvent
Reference to the SWIG generated
|
int | x |
int | y |
Method Summary | |
---|---|
MouseButtonState | getState()
The current button state
|
SDL_MouseMotionEvent | getSwigMouseMotionEvent()
Gets the value of swigMouseMotionEvent
|
int | getType()
The type of the this event
|
int | getWhich()
Describe getWhich method here.
|
int | getX()
The X co-ordinate
|
int | getXrel()
The relative X motion
|
int | getY()
The Y co-oridante
|
int | getYrel()
THe relative Y motion
|
void | setSwigMouseMotionEvent(SDL_MouseMotionEvent argSwigMouseMotionEvent)
Sets the value of swigMouseMotionEvent
|
void | setX(int newX) |
void | setY(int newY) |
String | toString() |
Returns: a short
value
Returns: the value of swigMouseMotionEvent
Returns: The type of event
getWhich
method here.
Returns: a short
value
Returns: an int
value
Returns: a short
value
Returns: an int
value
Returns: a short
value
Parameters: argSwigMouseMotionEvent Value to assign to this.swigMouseMotionEvent
Returns: a String
representation of myself