| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsdljava.event.SDLEvent
sdljava.event.SDLJoyButtonEvent
public class SDLJoyButtonEvent
A SDLJoyButtonEvent event occurs when ever a user presses or releases a button on a joystick. The field which is the index of the joystick that reported the event and button is the index of the button (for a more detailed explanation see the Joystick section). state is the current state or the button which is either SDL_PRESSED or SDL_RELEASED.
| Field Summary | |
|---|---|
(package private)  SDL_JoyButtonEvent | 
swigEvent
 | 
| Constructor Summary | |
|---|---|
SDLJoyButtonEvent()
 | 
|
| Method Summary | |
|---|---|
 int | 
getButton()
Get the button that was pressed  | 
 SDLPressedState | 
getState()
Get the state of the button  | 
 SDL_JoyButtonEvent | 
getSwigEvent()
Gets the value of swigEvent  | 
 int | 
getType()
The type of the this event  | 
 int | 
getWhich()
Get Which joystick the event occured on  | 
 void | 
setSwigEvent(SDL_JoyButtonEvent 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_JoyButtonEvent swigEvent
| Constructor Detail | 
|---|
public SDLJoyButtonEvent()
| Method Detail | 
|---|
public SDL_JoyButtonEvent getSwigEvent()
public void setSwigEvent(SDL_JoyButtonEvent argSwigEvent)
argSwigEvent - Value to assign to this.swigEventpublic int getWhich()
public int getButton()
public SDLPressedState getState()
public int getType()
getType in class SDLEventpublic 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 | |||||||||