|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sdljava.event.SDLEvent sdljava.event.SDLKeyboardEvent
public class SDLKeyboardEvent
A keyboard event occurs when a key is released (type=SDK_KEYUP or state=SDL_RELEASED) and when a key is pressed (type=SDL_KEYDOWN or state=SDL_PRESSED). The information on what key was pressed or released is in the keysym member.
Note: Repeating SDL_KEYDOWN events will occur if key repeat is enabled (see SDL_EnableKeyRepeat).
Field Summary | |
---|---|
(package private) SDLMod |
cachedMod
|
(package private) short |
cachedScancode
|
(package private) int |
cachedSym
|
(package private) int |
cachedUnicode
|
(package private) SDL_KeyboardEvent |
swigKeyboardEvent
Reference to the SWIG generated Keyboard Event |
Constructor Summary | |
---|---|
SDLKeyboardEvent()
|
Method Summary | |
---|---|
SDLMod |
getMod()
Current key modifiers |
short |
getScancode()
Return the Hardware specific scancode |
SDLPressedState |
getState()
Get the state of the button |
SDL_KeyboardEvent |
getSwigKeyboardEvent()
Gets the value of swigKeyboardEvent |
int |
getSym()
SDL virtual keysym |
int |
getType()
The type of the this event |
int |
getUnicode()
Translated Unicode character |
void |
setSwigKeyboardEvent(SDL_KeyboardEvent argSwigKeyboardEvent)
Sets the value of swigKeyboardEvent |
java.lang.String |
toString()
|
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_KeyboardEvent swigKeyboardEvent
short cachedScancode
int cachedSym
SDLMod cachedMod
int cachedUnicode
Constructor Detail |
---|
public SDLKeyboardEvent()
Method Detail |
---|
public SDL_KeyboardEvent getSwigKeyboardEvent()
public void setSwigKeyboardEvent(SDL_KeyboardEvent argSwigKeyboardEvent)
argSwigKeyboardEvent
- Value to assign to this.swigKeyboardEventpublic short getScancode()
public int getSym()
public int getUnicode()
public SDLMod getMod()
public SDLPressedState getState()
public int getType()
getType
in class SDLEvent
public java.lang.String toString()
toString
in class java.lang.Object
String
representation of myself
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |