comparison src/events/SDL_events_c.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents 97d0966f4bf7
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
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 26
27 /* Start and stop the event processing loop */ 27 /* Start and stop the event processing loop */
28 extern int SDL_StartEventLoop(Uint32 flags); 28 extern int SDL_StartEventLoop (Uint32 flags);
29 extern void SDL_StopEventLoop(void); 29 extern void SDL_StopEventLoop (void);
30 extern void SDL_QuitInterrupt(void); 30 extern void SDL_QuitInterrupt (void);
31 31
32 extern void SDL_Lock_EventThread(void); 32 extern void SDL_Lock_EventThread (void);
33 extern void SDL_Unlock_EventThread(void); 33 extern void SDL_Unlock_EventThread (void);
34 extern Uint32 SDL_EventThreadID(void); 34 extern Uint32 SDL_EventThreadID (void);
35 35
36 /* Event handler init routines */ 36 /* Event handler init routines */
37 extern int SDL_AppActiveInit(void); 37 extern int SDL_KeyboardInit (void);
38 extern int SDL_KeyboardInit(void); 38 extern int SDL_MouseInit (void);
39 extern int SDL_MouseInit(void); 39 extern int SDL_QuitInit (void);
40 extern int SDL_QuitInit(void);
41 40
42 /* Event handler quit routines */ 41 /* Event handler quit routines */
43 extern void SDL_AppActiveQuit(void); 42 extern void SDL_KeyboardQuit (void);
44 extern void SDL_KeyboardQuit(void); 43 extern void SDL_MouseQuit (void);
45 extern void SDL_MouseQuit(void); 44 extern void SDL_QuitQuit (void);
46 extern void SDL_QuitQuit(void);
47 45
48 /* The event filter function */ 46 /* The event filter function */
49 extern SDL_EventFilter SDL_EventOK; 47 extern SDL_EventFilter SDL_EventOK;
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 /* Internal event queueing functions
55 (from SDL_active.c, SDL_mouse.c, SDL_keyboard.c, SDL_quit.c, SDL_events.c) 53 (from SDL_mouse.c, SDL_keyboard.c, SDL_quit.c, SDL_events.c, SDL_windowevents.c)
56 */ 54 */
57 extern int SDL_PrivateAppActive(Uint8 gain, Uint8 state); 55 extern int SDL_PrivateWindowEvent (SDL_WindowID windowID, Uint8 windowevent,
58 extern int SDL_PrivateMouseMotion(Uint8 buttonstate, int relative, 56 int data1, int data2);
59 Sint16 x, Sint16 y); 57 extern int SDL_PrivateMouseMotion (Uint8 buttonstate, int relative, Sint16 x,
60 extern int SDL_PrivateMouseButton(Uint8 state, Uint8 button,Sint16 x,Sint16 y); 58 Sint16 y);
61 extern int SDL_PrivateKeyboard(Uint8 state, SDL_keysym *key); 59 extern int SDL_PrivateMouseButton (Uint8 state, Uint8 button, Sint16 x,
62 extern int SDL_PrivateResize(int w, int h); 60 Sint16 y);
63 extern int SDL_PrivateExpose(void); 61 extern int SDL_PrivateKeyboard (Uint8 state, SDL_keysym * key);
64 extern int SDL_PrivateQuit(void); 62 extern int SDL_PrivateQuit (void);
65 extern int SDL_PrivateSysWMEvent(SDL_SysWMmsg *message); 63 extern int SDL_PrivateSysWMEvent (SDL_SysWMmsg * message);
66 64
67 /* Used by the activity event handler to remove mouse focus */ 65 /* Used by the activity event handler to remove mouse focus */
68 extern void SDL_ResetMouse(void); 66 extern void SDL_ResetMouse (void);
69 67
70 /* Used by the activity event handler to remove keyboard focus */ 68 /* Used by the activity event handler to remove keyboard focus */
71 extern void SDL_ResetKeyboard(void); 69 extern void SDL_ResetKeyboard (void);
72 70
73 /* Used by the event loop to queue pending keyboard repeat events */ 71 /* Used by the event loop to queue pending keyboard repeat events */
74 extern void SDL_CheckKeyRepeat(void); 72 extern void SDL_CheckKeyRepeat (void);
75 73
76 /* Used by the OS keyboard code to detect whether or not to do UNICODE */ 74 /* Used by the OS keyboard code to detect whether or not to do UNICODE */
77 #ifndef DEFAULT_UNICODE_TRANSLATION 75 #ifndef DEFAULT_UNICODE_TRANSLATION
78 #define DEFAULT_UNICODE_TRANSLATION 0 /* Default off because of overhead */ 76 #define DEFAULT_UNICODE_TRANSLATION 0 /* Default off because of overhead */
79 #endif 77 #endif
80 extern int SDL_TranslateUNICODE; 78 extern int SDL_TranslateUNICODE;
79
80 /* vi: set ts=4 sw=4 expandtab: */