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

Quick Search    Search Deep

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

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

public class SDLJoyHatEvent
extends SDLEvent

The SDLJoyHatEvent represents a joystick hat position event.

Version:
$revision$

Field Summary
private  short hat
           
private  short value
           
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
SDLJoyHatEvent(short type, short which, short hat, short value)
          Constructs a new SDLJoyHatEvent with the given type, which, hat, and value parameters.
 
Method Summary
 short getHat()
          Return the hat of this joystick hat position event.
 short getValue()
          Return the value of this joystick hat position event.
 short getWhich()
          Return the 'which' of this joystick hat position 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

hat

private short hat

value

private short value
Constructor Detail

SDLJoyHatEvent

public SDLJoyHatEvent(short type,
                      short which,
                      short hat,
                      short value)
Constructs a new SDLJoyHatEvent with the given type, which, hat, and value parameters.

Method Detail

getWhich

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


getHat

public short getHat()
Return the hat of this joystick hat position event.


getValue

public short getValue()
Return the value of this joystick hat position event.