sdljava.event

Class SDLJoyAxisEvent

public class SDLJoyAxisEvent extends SDLEvent

A SDLJoyAxisEvent event occurs whenever a user moves an axis on the joystick. The field which is the index of the joystick that reported the event and axis is the index of the axis (for a more detailed explaination see the Joystick section). value is the current position of the axis.

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

Author: Ivan Z. Ganza

Field Summary
SDL_JoyAxisEventswigEvent
Method Summary
intgetAxis()
SDL_JoyAxisEventgetSwigEvent()
Gets the value of swigEvent
intgetType()
The type of the this event
intgetValue()
intgetWhich()
voidsetSwigEvent(SDL_JoyAxisEvent argSwigEvent)
Sets the value of swigEvent
StringtoString()
Return a string represenation of this object

Field Detail

swigEvent

SDL_JoyAxisEvent swigEvent

Method Detail

getAxis

public int getAxis()

getSwigEvent

public SDL_JoyAxisEvent 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

getValue

public int getValue()

getWhich

public int getWhich()

setSwigEvent

public void setSwigEvent(SDL_JoyAxisEvent 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