#include "lib/lib_api.h"
#include "lib/byte_order.h"
#include "SDL_keysym.h"
Go to the source code of this file.
|
enum | SDL_GLattr { SDL_GL_DEPTH_SIZE,
SDL_GL_STENCIL_SIZE,
SDL_GL_DOUBLEBUFFER,
SDL_GL_SWAP_CONTROL
} |
|
enum | ShowCursorToggle { SDL_DISABLE = 0,
SDL_ENABLE = 1,
SDL_QUERY = 2
} |
|
enum | SDL_MouseButtonEvent_button {
SDL_BUTTON_LEFT = 1,
SDL_BUTTON_MIDDLE = 2,
SDL_BUTTON_RIGHT = 3,
SDL_BUTTON_WHEELUP = 4,
SDL_BUTTON_WHEELDOWN = 5,
SDL_BUTTON_X1 = 6,
SDL_BUTTON_X2 = 7
} |
|
enum | SDL_MouseButtonEvent_state { SDL_RELEASED = 0,
SDL_PRESSED = 1
} |
|
enum | SDL_ActiveEvent_state { SDL_APPACTIVE = 1,
SDL_APPMOUSEFOCUS = 2,
SDL_APPINPUTFOCUS = 4
} |
|
enum | SDL_Event_type {
SDL_KEYDOWN,
SDL_KEYUP,
SDL_MOUSEMOTION,
SDL_MOUSEBUTTONDOWN,
SDL_MOUSEBUTTONUP,
SDL_ACTIVEEVENT,
SDL_QUIT,
SDL_VIDEOEXPOSE,
SDL_VIDEORESIZE,
SDL_USEREVENT
} |
|
enum | SDL_GrabMode { SDL_GRAB_QUERY,
SDL_GRAB_OFF,
SDL_GRAB_ON
} |
|
|
LIB_API int | SDL_Init (Uint32 flags) |
|
LIB_API int | SDL_InitSubSystem (Uint32 flags) |
|
LIB_API void | SDL_Quit () |
|
LIB_API int | SDL_GL_SetAttribute (SDL_GLattr attr, int value) |
|
LIB_API SDL_Surface * | SDL_SetVideoMode (int w, int h, int bpp, Uint32 flags) |
|
LIB_API SDL_Surface * | SDL_GetVideoSurface () |
|
LIB_API SDL_VideoInfo * | SDL_GetVideoInfo () |
|
LIB_API void * | SDL_GL_GetProcAddress (const char *) |
|
LIB_API void | SDL_GL_SwapBuffers () |
|
LIB_API int | SDL_SetGamma (float r, float g, float b) |
|
LIB_API SDL_sem * | SDL_CreateSemaphore (int cnt) |
|
LIB_API void | SDL_DestroySemaphore (SDL_sem *) |
|
LIB_API int | SDL_SemPost (SDL_sem *) |
|
LIB_API int | SDL_SemWait (SDL_sem *sem) |
|
LIB_API u32 | SDL_GetTicks () |
|
LIB_API void | SDL_Delay (u32 ms) |
|
LIB_API void | SDL_WarpMouse (int, int) |
|
LIB_API int | SDL_ShowCursor (int toggle) |
|
LIB_API Uint8 | SDL_GetMouseState (int *x, int *y) |
|
LIB_API Uint8 * | SDL_GetKeyState (int *num_keys) |
|
int | SDL_NumJoysticks () |
|
int | SDL_JoystickEventState (int state) |
|
const char * | SDL_JoystickName (int device_index) |
|
SDL_Joystick * | SDL_JoystickOpen (int device_index) |
|
int | SDL_JoystickNumAxes (SDL_Joystick *joystick) |
|
Sint16 | SDL_JoystickGetAxis (SDL_Joystick *joystick, int axis) |
|
LIB_API int | SDL_EnableUNICODE (int enable) |
|
LIB_API int | SDL_WaitEvent (SDL_Event *) |
|
LIB_API int | SDL_PollEvent (SDL_Event *ev) |
|
LIB_API int | SDL_PushEvent (SDL_Event *ev) |
|
LIB_API SDL_GrabMode | SDL_WM_GrabInput (SDL_GrabMode mode) |
|
LIB_API void | SDL_WM_SetCaption (const char *title, const char *icon) |
|
LIB_API Uint8 | SDL_GetAppState () |
|
#define SDL_BIG_ENDIAN 4321 |
#define SDL_BUTTON |
( |
|
b | ) |
(1u << (b-1)) |
#define SDL_DEFAULT_REPEAT_DELAY 500 |
#define SDL_DEFAULT_REPEAT_INTERVAL 30 |
#define SDL_EnableKeyRepeat |
( |
|
delay, |
|
|
|
interval |
|
) |
| |
#define SDL_GetError |
( |
| ) |
"" |
#define SDL_INIT_JOYSTICK 0 |
#define SDL_INIT_NOPARACHUTE 0 |
#define SDL_LIL_ENDIAN 1234 |
#define SDL_VERSION_ATLEAST |
( |
|
X, |
|
|
|
Y, |
|
|
|
Z |
|
) |
| ((X) == 1 && (Y) <= 2) |
Enumerator |
---|
SDL_APPACTIVE |
|
SDL_APPMOUSEFOCUS |
|
SDL_APPINPUTFOCUS |
|
Definition at line 255 of file wsdl.h.
Enumerator |
---|
SDL_KEYDOWN |
|
SDL_KEYUP |
|
SDL_MOUSEMOTION |
|
SDL_MOUSEBUTTONDOWN |
|
SDL_MOUSEBUTTONUP |
|
SDL_ACTIVEEVENT |
|
SDL_QUIT |
|
SDL_VIDEOEXPOSE |
|
SDL_VIDEORESIZE |
|
SDL_USEREVENT |
|
Definition at line 286 of file wsdl.h.
Enumerator |
---|
SDL_GL_DEPTH_SIZE |
|
SDL_GL_STENCIL_SIZE |
|
SDL_GL_DOUBLEBUFFER |
|
SDL_GL_SWAP_CONTROL |
|
Definition at line 59 of file wsdl.h.
Enumerator |
---|
SDL_GRAB_QUERY |
|
SDL_GRAB_OFF |
|
SDL_GRAB_ON |
|
Definition at line 326 of file wsdl.h.
Enumerator |
---|
SDL_BUTTON_LEFT |
|
SDL_BUTTON_MIDDLE |
|
SDL_BUTTON_RIGHT |
|
SDL_BUTTON_WHEELUP |
|
SDL_BUTTON_WHEELDOWN |
|
SDL_BUTTON_X1 |
|
SDL_BUTTON_X2 |
|
Definition at line 221 of file wsdl.h.
Enumerator |
---|
SDL_RELEASED |
|
SDL_PRESSED |
|
Definition at line 240 of file wsdl.h.
Enumerator |
---|
SDL_DISABLE |
|
SDL_ENABLE |
|
SDL_QUERY |
|
Definition at line 130 of file wsdl.h.
LIB_API SDL_sem* SDL_CreateSemaphore |
( |
int |
cnt | ) |
|
LIB_API void SDL_Delay |
( |
u32 |
ms | ) |
|
LIB_API void SDL_DestroySemaphore |
( |
SDL_sem * |
| ) |
|
LIB_API int SDL_EnableUNICODE |
( |
int |
enable | ) |
|
LIB_API Uint8 SDL_GetAppState |
( |
| ) |
|
LIB_API Uint8* SDL_GetKeyState |
( |
int * |
num_keys | ) |
|
LIB_API Uint8 SDL_GetMouseState |
( |
int * |
x, |
|
|
int * |
y |
|
) |
| |
LIB_API u32 SDL_GetTicks |
( |
| ) |
|
LIB_API void* SDL_GL_GetProcAddress |
( |
const char * |
| ) |
|
LIB_API int SDL_GL_SetAttribute |
( |
SDL_GLattr |
attr, |
|
|
int |
value |
|
) |
| |
LIB_API void SDL_GL_SwapBuffers |
( |
| ) |
|
LIB_API int SDL_Init |
( |
Uint32 |
flags | ) |
|
LIB_API int SDL_InitSubSystem |
( |
Uint32 |
flags | ) |
|
int SDL_JoystickEventState |
( |
int |
state | ) |
|
const char* SDL_JoystickName |
( |
int |
device_index | ) |
|
LIB_API void SDL_Quit |
( |
| ) |
|
LIB_API int SDL_SemPost |
( |
SDL_sem * |
| ) |
|
LIB_API int SDL_SemWait |
( |
SDL_sem * |
sem | ) |
|
LIB_API int SDL_SetGamma |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
LIB_API int SDL_ShowCursor |
( |
int |
toggle | ) |
|
LIB_API void SDL_WarpMouse |
( |
int |
, |
|
|
int |
|
|
) |
| |
LIB_API void SDL_WM_SetCaption |
( |
const char * |
title, |
|
|
const char * |
icon |
|
) |
| |