src/events/SDL_events_c.h
changeset 1895 c121d94672cb
parent 1612 97d0966f4bf7
child 2859 99210400e8b9
     1.1 --- a/src/events/SDL_events_c.h	Thu Jul 06 18:01:37 2006 +0000
     1.2 +++ b/src/events/SDL_events_c.h	Mon Jul 10 21:04:37 2006 +0000
     1.3 @@ -23,6 +23,9 @@
     1.4  
     1.5  /* Useful functions and variables from SDL_events.c */
     1.6  #include "SDL_events.h"
     1.7 +#include "SDL_mouse_c.h"
     1.8 +#include "SDL_keyboard_c.h"
     1.9 +#include "SDL_windowevents_c.h"
    1.10  
    1.11  /* Start and stop the event processing loop */
    1.12  extern int SDL_StartEventLoop(Uint32 flags);
    1.13 @@ -33,48 +36,17 @@
    1.14  extern void SDL_Unlock_EventThread(void);
    1.15  extern Uint32 SDL_EventThreadID(void);
    1.16  
    1.17 -/* Event handler init routines */
    1.18 -extern int  SDL_AppActiveInit(void);
    1.19 -extern int  SDL_KeyboardInit(void);
    1.20 -extern int  SDL_MouseInit(void);
    1.21 -extern int  SDL_QuitInit(void);
    1.22 +extern int SDL_SendSysWMEvent(SDL_SysWMmsg * message);
    1.23  
    1.24 -/* Event handler quit routines */
    1.25 -extern void SDL_AppActiveQuit(void);
    1.26 -extern void SDL_KeyboardQuit(void);
    1.27 -extern void SDL_MouseQuit(void);
    1.28 +extern int SDL_QuitInit(void);
    1.29 +extern int SDL_SendQuit(void);
    1.30  extern void SDL_QuitQuit(void);
    1.31  
    1.32  /* The event filter function */
    1.33  extern SDL_EventFilter SDL_EventOK;
    1.34 +extern void *SDL_EventOKParam;
    1.35  
    1.36  /* The array of event processing states */
    1.37  extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS];
    1.38  
    1.39 -/* Internal event queueing functions
    1.40 -   (from SDL_active.c, SDL_mouse.c, SDL_keyboard.c, SDL_quit.c, SDL_events.c)
    1.41 - */
    1.42 -extern int SDL_PrivateAppActive(Uint8 gain, Uint8 state);
    1.43 -extern int SDL_PrivateMouseMotion(Uint8 buttonstate, int relative,
    1.44 -						Sint16 x, Sint16 y);
    1.45 -extern int SDL_PrivateMouseButton(Uint8 state, Uint8 button,Sint16 x,Sint16 y);
    1.46 -extern int SDL_PrivateKeyboard(Uint8 state, SDL_keysym *key);
    1.47 -extern int SDL_PrivateResize(int w, int h);
    1.48 -extern int SDL_PrivateExpose(void);
    1.49 -extern int SDL_PrivateQuit(void);
    1.50 -extern int SDL_PrivateSysWMEvent(SDL_SysWMmsg *message);
    1.51 -
    1.52 -/* Used by the activity event handler to remove mouse focus */
    1.53 -extern void SDL_ResetMouse(void);
    1.54 -
    1.55 -/* Used by the activity event handler to remove keyboard focus */
    1.56 -extern void SDL_ResetKeyboard(void);
    1.57 -
    1.58 -/* Used by the event loop to queue pending keyboard repeat events */
    1.59 -extern void SDL_CheckKeyRepeat(void);
    1.60 -
    1.61 -/* Used by the OS keyboard code to detect whether or not to do UNICODE */
    1.62 -#ifndef DEFAULT_UNICODE_TRANSLATION
    1.63 -#define DEFAULT_UNICODE_TRANSLATION 0	/* Default off because of overhead */
    1.64 -#endif
    1.65 -extern int SDL_TranslateUNICODE;
    1.66 +/* vi: set ts=4 sw=4 expandtab: */