src/events/SDL_events_c.h
changeset 0 74212992fb08
child 252 e8157fcb3114
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/events/SDL_events_c.h	Thu Apr 26 16:45:43 2001 +0000
     1.3 @@ -0,0 +1,78 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997, 1998, 1999, 2000, 2001  Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Library General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Library General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Library General Public
    1.19 +    License along with this library; if not, write to the Free
    1.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@devolution.com
    1.24 +*/
    1.25 +
    1.26 +#ifdef SAVE_RCSID
    1.27 +static char rcsid =
    1.28 + "@(#) $Id$";
    1.29 +#endif
    1.30 +
    1.31 +/* Useful functions and variables from SDL_events.c */
    1.32 +#include "SDL_events.h"
    1.33 +
    1.34 +/* Start and stop the event processing loop */
    1.35 +extern int SDL_StartEventLoop(Uint32 flags);
    1.36 +extern void SDL_StopEventLoop(void);
    1.37 +extern void SDL_QuitInterrupt(void);
    1.38 +
    1.39 +extern void SDL_Lock_EventThread();
    1.40 +extern void SDL_Unlock_EventThread();
    1.41 +extern Uint32 SDL_EventThreadID(void);
    1.42 +
    1.43 +/* Event handler init routines */
    1.44 +extern int  SDL_AppActiveInit(void);
    1.45 +extern int  SDL_KeyboardInit(void);
    1.46 +extern int  SDL_MouseInit(void);
    1.47 +extern int  SDL_QuitInit(void);
    1.48 +
    1.49 +/* The event filter function */
    1.50 +extern SDL_EventFilter SDL_EventOK;
    1.51 +
    1.52 +/* The array of event processing states */
    1.53 +extern Uint8 SDL_ProcessEvents[SDL_NUMEVENTS];
    1.54 +
    1.55 +/* Internal event queueing functions
    1.56 +   (from SDL_active.c, SDL_mouse.c, SDL_keyboard.c, SDL_quit.c, SDL_events.c)
    1.57 + */
    1.58 +extern int SDL_PrivateAppActive(Uint8 gain, Uint8 state);
    1.59 +extern int SDL_PrivateMouseMotion(Uint8 buttonstate, int relative,
    1.60 +						Sint16 x, Sint16 y);
    1.61 +extern int SDL_PrivateMouseButton(Uint8 state, Uint8 button,Sint16 x,Sint16 y);
    1.62 +extern int SDL_PrivateKeyboard(Uint8 state, SDL_keysym *key);
    1.63 +extern int SDL_PrivateResize(int w, int h);
    1.64 +extern int SDL_PrivateExpose(void);
    1.65 +extern int SDL_PrivateQuit(void);
    1.66 +extern int SDL_PrivateSysWMEvent(SDL_SysWMmsg *message);
    1.67 +
    1.68 +/* Used by the activity event handler to remove mouse focus */
    1.69 +extern void SDL_MouseFocus(int focus);
    1.70 +
    1.71 +/* Used by the activity event handler to remove keyboard focus */
    1.72 +extern void SDL_ResetKeyboard(void);
    1.73 +
    1.74 +/* Used by the event loop to queue pending keyboard repeat events */
    1.75 +extern void SDL_CheckKeyRepeat(void);
    1.76 +
    1.77 +/* Used by the OS keyboard code to detect whether or not to do UNICODE */
    1.78 +#ifndef DEFAULT_UNICODE_TRANSLATION
    1.79 +#define DEFAULT_UNICODE_TRANSLATION 0	/* Default off because of overhead */
    1.80 +#endif
    1.81 +extern int SDL_TranslateUNICODE;