|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sdljava.event.SDLEvent sdljava.event.SDLJoyHatEvent
public class SDLJoyHatEvent
A SDLJoyHatEvent event occurs when ever a user moves a hat on the joystick. The field which is the index of the joystick that reported the event and hat is the index of the hat (for a more detailed explanation see the Joystick section). value is the current position of the hat. It is a bitwise OR'd combination of the following values (whose meanings should be pretty obvious):
SDL_HAT_CENTERED
SDL_HAT_UP
SDL_HAT_RIGHT
SDL_HAT_DOWN
SDL_HAT_LEFT
The following defines are also provided:
SDL_HAT_RIGHTUP
SDL_HAT_RIGHTDOWN
SDL_HAT_LEFTUP
SDL_HAT_LEFTDOWN
Field Summary | |
---|---|
(package private) SDL_JoyHatEvent |
swigEvent
|
Constructor Summary | |
---|---|
SDLJoyHatEvent()
|
Method Summary | |
---|---|
int |
getHat()
|
SDL_JoyHatEvent |
getSwigEvent()
Gets the value of swigEvent |
int |
getType()
The type of the this event |
HatState |
getValue()
|
int |
getWhich()
|
void |
setSwigEvent(SDL_JoyHatEvent argSwigEvent)
Sets the value of swigEvent |
java.lang.String |
toString()
Return a string represenation of this object |
Methods inherited from class sdljava.event.SDLEvent |
---|
enableKeyRepeat, enableUNICODE, eventState, getAppState, getKeyName, getModState, getMouseState, getRelativeMouseState, joystickEventState, pollEvent, pollEvent, processEvent, pumpEvents, setModState, waitEvent, waitEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
SDL_JoyHatEvent swigEvent
Constructor Detail |
---|
public SDLJoyHatEvent()
Method Detail |
---|
public SDL_JoyHatEvent getSwigEvent()
public void setSwigEvent(SDL_JoyHatEvent argSwigEvent)
argSwigEvent
- Value to assign to this.swigEventpublic int getWhich()
public int getHat()
public HatState getValue()
public int getType()
getType
in class SDLEvent
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |