default
tksdl
tksdltksdl.SDLdelay(int millisec) - Suspend thread for the given number of millisec
enableKeyRepeat(int delay, rate) - Configure SDL key repeat
enableUNICODE(boolean bEnabled) - Configure whether unicode conversion shall be performed when processing keyboard events
eventLoop() - Enter SDL event loop.
exitEventLoop() - Exit SDL event loop.
getEventPolling() : boolean - Query whether blocking waits shall be used when retrieving the next SDL message
getJoystick(int dev) : Joystick - Return Joystick device object
getNumJoysticks() : int - Query number of available joystick devices.
getRedrawFlag() : int - Query redraw behaviour
getTicks() : int - Return number of ticks (millisec) since app. start
isApplicationActive() : boolean - Query whether the application windows is currently in the foreground.
reportJoystickEvent(boolean bEnable) - Configure whether joystick events shall be reported
sendUserEvent(String ev) - Post event message to event queue
setEventPolling(boolean bEnabled) - Configure whether blocking waits shall be used when retrieving the next SDL message
setRedrawFlag(int flags) - Control redraw behaviour
triggerEvent(String ev) - Immediately send user event
updateJoysticks() - Update joystick state int DEFAULT_KEYBOARD_REPEAT_DELAY -
int DEFAULT_KEYBOARD_REPEAT_INTERVAL -
int MOUSE_LBUTTON -
int MOUSE_MBUTTON -
int MOUSE_POINTER_ENTER -
int MOUSE_POINTER_MANUAL -
int MOUSE_POINTER_MOVE -
int MOUSE_RBUTTON -
int MOUSE_WHEELDOWN -
int MOUSE_WHEELUP -
int REDRAW_ALL -
int REDRAW_DIRTY -
int SDL_NOFRAME -
int SDL_RESIZABLE -
Please notice that some functionality is placed in separate classes (Mouse, Viewport, AudioDevice, Cursor, FPS)
This class uses the following signals/callbacks:
- onKeyboard(Key k) - onMouse(int absx, int absy, int currbuttonstate, int changedbuttonstate) - onJoyAxisMotion(int dev, int axis, int val) - onJoyButton(int dev, int button, int pressed) - onJoyHatMotion(int dev, int hat, int state) - onJoyBallMotion(int dev, int hat, int dx, int dy) - onDraw() - onExit() - onEvent(Event ev) - onReopen() - onExpose() - onApplicationActive(boolean bActive) - onMouseFocusActive(boolean bActive) - onInputFocusActive(boolean bActive) - onIdle()
Method delay | |||||
Deprecated: Use TKS.sleep()() instead | |||||
Suspend thread for the given number of millisec | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method enableKeyRepeat | |||||||||||||||
Deprecated: Since this is a global setting it is recommend to use the tkui (per widget) keyrepeat mechanism instead | |||||||||||||||
Configure SDL key repeat | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
This is a wrapper for the SDL_EnableKeyRepeat() native function. |
Method enableUNICODE | |||||
Configure whether unicode conversion shall be performed when processing keyboard events | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This is a wrapper for the SDL_EnableUNICODE() native function. |
Method eventLoop | |||
Enter SDL event loop. | |||
Signature | |||
| |||
Description | |||
This method does not return until the window is closed resp. exitEventLoop() is called. |
Method exitEventLoop | |||
Exit SDL event loop. | |||
Signature | |||
| |||
Description | |||
This causes the eventLoop() method to return. |
Method getEventPolling | |||||
Query whether blocking waits shall be used when retrieving the next SDL message | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getJoystick | ||||||||||
Return Joystick device object | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
Method getNumJoysticks | |||||
Query number of available joystick devices. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getRedrawFlag | |||||
Query redraw behaviour | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getTicks | |||||
Deprecated: Use the milliSeconds()() core function instead | |||||
Return number of ticks (millisec) since app. start | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method isApplicationActive | |||||
Query whether the application windows is currently in the foreground. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method reportJoystickEvent | |||||
Configure whether joystick events shall be reported | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This is a wrapper for the SDL_JoystickEventState() native function. |
Method sendUserEvent | |||||
Post event message to event queue | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
Useful for asynchronous thread communication |
Method setEventPolling | |||||
Configure whether blocking waits shall be used when retrieving the next SDL message | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setRedrawFlag | |||||
Control redraw behaviour | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method triggerEvent | |||||
| Deprecated: Call your event handler directly instead | |||||
Immediately send user event | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method updateJoysticks | |||
Update joystick state | |||
Signature | |||
| |||
Description | |||
This is a wrapper for the SDL_JoystickUpdate() native function. |
Constant DEFAULT_KEYBOARD_REPEAT_DELAY (int) | |
Constant DEFAULT_KEYBOARD_REPEAT_INTERVAL (int) | |
Constant MOUSE_LBUTTON (int) | |
Constant MOUSE_MBUTTON (int) | |
Constant MOUSE_POINTER_ENTER (int) | |
Constant MOUSE_POINTER_MANUAL (int) | |
Constant MOUSE_POINTER_MOVE (int) | |
Constant MOUSE_RBUTTON (int) | |
Constant MOUSE_WHEELDOWN (int) | |
Constant MOUSE_WHEELUP (int) | |
Constant REDRAW_ALL (int) | |
Constant REDRAW_DIRTY (int) | |
Constant SDL_NOFRAME (int) | |
Constant SDL_RESIZABLE (int) | |
| Project Modules: | tksdl |
| Project Classes: | AudioDevice , AudioSample , Cursor , FPS , Joystick , Key , Mouse , SamplePlayer , SDL , Viewport |
| Project Functions: | MIDINoteToFrequency |
| All Namespaces: | default , ui |
| All Projects: | core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit |
auto-generated by "DOG", the TkScript document generator. Sat, 31/Dec/2011 16:12:20