Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.libsdl.event
Class SDLJoyButtonEvent  view SDLJoyButtonEvent download SDLJoyButtonEvent.java

java.lang.Object
  extended byorg.libsdl.event.SDLEvent
      extended byorg.libsdl.event.SDLJoyButtonEvent

public class SDLJoyButtonEvent
extends SDLEvent

The SDLJoyButtonEvent represents a joystick button event.

Version:
$revision$

Field Summary
private  short button
           
private  short state
           
private  short which
           
 
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
SDLJoyButtonEvent(short type, short which, short button, short state)
          Constructs a new SDLJoyButtonEvent with the given type, which, button, and state parameters.
 
Method Summary
 short getButton()
          Return the button of this joystick button event.
 short getState()
          Return the state of this joystick button event.
 short getWhich()
          Return the 'which' of this joystick button event.
 
Methods inherited from class org.libsdl.event.SDLEvent
getSubType, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

which

private short which

button

private short button

state

private short state
Constructor Detail

SDLJoyButtonEvent

public SDLJoyButtonEvent(short type,
                         short which,
                         short button,
                         short state)
Constructs a new SDLJoyButtonEvent with the given type, which, button, and state parameters.

Method Detail

getWhich

public short getWhich()
Return the 'which' of this joystick button event.


getButton

public short getButton()
Return the button of this joystick button event.


getState

public short getState()
Return the state of this joystick button event.