Mercurial > sdl-ios-xcode
comparison src/events/SDL_events_c.h @ 1674:7688a73b25b1 SDL-1.3
Finishing up keyboard code revamp, at least for now...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 11 Jun 2006 05:27:10 +0000 |
parents | eef792d31de8 |
children | a1ebb17f9c52 |
comparison
equal
deleted
inserted
replaced
1673:624e1412fbba | 1674:7688a73b25b1 |
---|---|
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | 23 |
24 /* Useful functions and variables from SDL_events.c */ | 24 /* Useful functions and variables from SDL_events.c */ |
25 #include "SDL_events.h" | 25 #include "SDL_events.h" |
26 #include "SDL_mouse_c.h" | 26 #include "SDL_mouse_c.h" |
27 #include "SDL_keyboard_c.h" | |
27 | 28 |
28 /* Start and stop the event processing loop */ | 29 /* Start and stop the event processing loop */ |
29 extern int SDL_StartEventLoop(Uint32 flags); | 30 extern int SDL_StartEventLoop(Uint32 flags); |
30 extern void SDL_StopEventLoop(void); | 31 extern void SDL_StopEventLoop(void); |
31 extern void SDL_QuitInterrupt(void); | 32 extern void SDL_QuitInterrupt(void); |
32 | 33 |
33 extern void SDL_Lock_EventThread(void); | 34 extern void SDL_Lock_EventThread(void); |
34 extern void SDL_Unlock_EventThread(void); | 35 extern void SDL_Unlock_EventThread(void); |
35 extern Uint32 SDL_EventThreadID(void); | 36 extern Uint32 SDL_EventThreadID(void); |
36 | |
37 extern int SDL_KeyboardInit(void); | |
38 extern int SDL_SendKeyboard(Uint8 state, SDL_keysym * key); | |
39 extern void SDL_KeyboardQuit(void); | |
40 | 37 |
41 extern int SDL_QuitInit(void); | 38 extern int SDL_QuitInit(void); |
42 extern int SDL_SendQuit(void); | 39 extern int SDL_SendQuit(void); |
43 extern void SDL_QuitQuit(void); | 40 extern void SDL_QuitQuit(void); |
44 | 41 |
51 extern SDL_EventFilter SDL_EventOK; | 48 extern SDL_EventFilter SDL_EventOK; |
52 | 49 |
53 /* The array of event processing states */ | 50 /* The array of event processing states */ |
54 extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS]; | 51 extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS]; |
55 | 52 |
56 /* Used by the event loop to queue pending keyboard repeat events */ | |
57 extern void SDL_CheckKeyRepeat(void); | |
58 | |
59 /* Used by the OS keyboard code to detect whether or not to do UNICODE */ | |
60 #ifndef DEFAULT_UNICODE_TRANSLATION | |
61 #define DEFAULT_UNICODE_TRANSLATION 0 /* Default off because of overhead */ | |
62 #endif | |
63 extern int SDL_TranslateUNICODE; | |
64 | |
65 /* vi: set ts=4 sw=4 expandtab: */ | 53 /* vi: set ts=4 sw=4 expandtab: */ |