sdljava.event

Class SDLJoyBallEvent

public class SDLJoyBallEvent extends SDLEvent

A SDLJoyBallEvent event occurs when a user moves a trackball on the joystick. The field which is the index of the joystick that reported the event and ball is the index of the trackball (for a more detailed explanation see the Joystick section). Trackballs only return relative motion, this is the change in position on the ball since it was last polled (last cycle of the event loop) and it is stored in xrel and yrel.

Version: $Id: SDLJoyBallEvent.java,v 1.5 2005/01/25 02:50:44 ivan_ganza Exp $

Author: Ivan Z. Ganza

Field Summary
SDL_JoyBallEventswigEvent
Method Summary
intgetBall()
SDL_JoyBallEventgetSwigEvent()
Gets the value of swigEvent
intgetType()
The type of the this event
intgetWhich()
intgetXRelative()
intgetYRelative()
voidsetSwigEvent(SDL_JoyBallEvent argSwigEvent)
Sets the value of swigEvent
StringtoString()
Return a string represenation of this object

Field Detail

swigEvent

SDL_JoyBallEvent swigEvent

Method Detail

getBall

public int getBall()

getSwigEvent

public SDL_JoyBallEvent getSwigEvent()
Gets the value of swigEvent

Returns: the value of swigEvent

getType

public int getType()
The type of the this event

Returns: The type of event

getWhich

public int getWhich()

getXRelative

public int getXRelative()

getYRelative

public int getYRelative()

setSwigEvent

public void setSwigEvent(SDL_JoyBallEvent argSwigEvent)
Sets the value of swigEvent

Parameters: argSwigEvent Value to assign to this.swigEvent

toString

public String toString()
Return a string represenation of this object

Returns: a String represenation of this object