comparison src/events/SDL_events_c.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents 97d0966f4bf7
children 99210400e8b9
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
21 */ 21 */
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"
27 #include "SDL_keyboard_c.h"
28 #include "SDL_windowevents_c.h"
26 29
27 /* Start and stop the event processing loop */ 30 /* Start and stop the event processing loop */
28 extern int SDL_StartEventLoop(Uint32 flags); 31 extern int SDL_StartEventLoop(Uint32 flags);
29 extern void SDL_StopEventLoop(void); 32 extern void SDL_StopEventLoop(void);
30 extern void SDL_QuitInterrupt(void); 33 extern void SDL_QuitInterrupt(void);
31 34
32 extern void SDL_Lock_EventThread(void); 35 extern void SDL_Lock_EventThread(void);
33 extern void SDL_Unlock_EventThread(void); 36 extern void SDL_Unlock_EventThread(void);
34 extern Uint32 SDL_EventThreadID(void); 37 extern Uint32 SDL_EventThreadID(void);
35 38
36 /* Event handler init routines */ 39 extern int SDL_SendSysWMEvent(SDL_SysWMmsg * message);
37 extern int SDL_AppActiveInit(void);
38 extern int SDL_KeyboardInit(void);
39 extern int SDL_MouseInit(void);
40 extern int SDL_QuitInit(void);
41 40
42 /* Event handler quit routines */ 41 extern int SDL_QuitInit(void);
43 extern void SDL_AppActiveQuit(void); 42 extern int SDL_SendQuit(void);
44 extern void SDL_KeyboardQuit(void);
45 extern void SDL_MouseQuit(void);
46 extern void SDL_QuitQuit(void); 43 extern void SDL_QuitQuit(void);
47 44
48 /* The event filter function */ 45 /* The event filter function */
49 extern SDL_EventFilter SDL_EventOK; 46 extern SDL_EventFilter SDL_EventOK;
47 extern void *SDL_EventOKParam;
50 48
51 /* The array of event processing states */ 49 /* The array of event processing states */
52 extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS]; 50 extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS];
53 51
54 /* Internal event queueing functions 52 /* vi: set ts=4 sw=4 expandtab: */
55 (from SDL_active.c, SDL_mouse.c, SDL_keyboard.c, SDL_quit.c, SDL_events.c)
56 */
57 extern int SDL_PrivateAppActive(Uint8 gain, Uint8 state);
58 extern int SDL_PrivateMouseMotion(Uint8 buttonstate, int relative,
59 Sint16 x, Sint16 y);
60 extern int SDL_PrivateMouseButton(Uint8 state, Uint8 button,Sint16 x,Sint16 y);
61 extern int SDL_PrivateKeyboard(Uint8 state, SDL_keysym *key);
62 extern int SDL_PrivateResize(int w, int h);
63 extern int SDL_PrivateExpose(void);
64 extern int SDL_PrivateQuit(void);
65 extern int SDL_PrivateSysWMEvent(SDL_SysWMmsg *message);
66
67 /* Used by the activity event handler to remove mouse focus */
68 extern void SDL_ResetMouse(void);
69
70 /* Used by the activity event handler to remove keyboard focus */
71 extern void SDL_ResetKeyboard(void);
72
73 /* Used by the event loop to queue pending keyboard repeat events */
74 extern void SDL_CheckKeyRepeat(void);
75
76 /* Used by the OS keyboard code to detect whether or not to do UNICODE */
77 #ifndef DEFAULT_UNICODE_TRANSLATION
78 #define DEFAULT_UNICODE_TRANSLATION 0 /* Default off because of overhead */
79 #endif
80 extern int SDL_TranslateUNICODE;