src/events/SDL_events_c.h
branchSDL-1.3
changeset 1670 eef792d31de8
parent 1668 4da1ee79c9af
child 1674 7688a73b25b1
     1.1 --- a/src/events/SDL_events_c.h	Mon May 29 05:08:33 2006 +0000
     1.2 +++ b/src/events/SDL_events_c.h	Wed Jun 07 16:10:28 2006 +0000
     1.3 @@ -23,6 +23,7 @@
     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  
     1.9  /* Start and stop the event processing loop */
    1.10  extern int SDL_StartEventLoop(Uint32 flags);
    1.11 @@ -33,41 +34,25 @@
    1.12  extern void SDL_Unlock_EventThread(void);
    1.13  extern Uint32 SDL_EventThreadID(void);
    1.14  
    1.15 -/* Event handler init routines */
    1.16  extern int SDL_KeyboardInit(void);
    1.17 -extern int SDL_MouseInit(void);
    1.18 -extern int SDL_QuitInit(void);
    1.19 +extern int SDL_SendKeyboard(Uint8 state, SDL_keysym * key);
    1.20 +extern void SDL_KeyboardQuit(void);
    1.21  
    1.22 -/* Event handler quit routines */
    1.23 -extern void SDL_KeyboardQuit(void);
    1.24 -extern void SDL_MouseQuit(void);
    1.25 +extern int SDL_QuitInit(void);
    1.26 +extern int SDL_SendQuit(void);
    1.27  extern void SDL_QuitQuit(void);
    1.28  
    1.29 +extern int SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent,
    1.30 +                               int data1, int data2);
    1.31 +
    1.32 +extern int SDL_SendSysWMEvent(SDL_SysWMmsg * message);
    1.33 +
    1.34  /* The event filter function */
    1.35  extern SDL_EventFilter SDL_EventOK;
    1.36  
    1.37  /* The array of event processing states */
    1.38  extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS];
    1.39  
    1.40 -/* Internal event queueing functions
    1.41 -   (from SDL_mouse.c, SDL_keyboard.c, SDL_quit.c, SDL_events.c, SDL_windowevents.c)
    1.42 - */
    1.43 -extern int SDL_PrivateWindowEvent(SDL_WindowID windowID, Uint8 windowevent,
    1.44 -                                  int data1, int data2);
    1.45 -extern int SDL_PrivateMouseMotion(Uint8 buttonstate, int relative, Sint16 x,
    1.46 -                                  Sint16 y);
    1.47 -extern int SDL_PrivateMouseButton(Uint8 state, Uint8 button, Sint16 x,
    1.48 -                                  Sint16 y);
    1.49 -extern int SDL_PrivateKeyboard(Uint8 state, SDL_keysym * key);
    1.50 -extern int SDL_PrivateQuit(void);
    1.51 -extern int SDL_PrivateSysWMEvent(SDL_SysWMmsg * message);
    1.52 -
    1.53 -/* Used by the activity event handler to remove mouse focus */
    1.54 -extern void SDL_ResetMouse(void);
    1.55 -
    1.56 -/* Used by the activity event handler to remove keyboard focus */
    1.57 -extern void SDL_ResetKeyboard(void);
    1.58 -
    1.59  /* Used by the event loop to queue pending keyboard repeat events */
    1.60  extern void SDL_CheckKeyRepeat(void);
    1.61