00001 #ifndef __SDL_EVENTMAP_H__
00002 #define __SDL_EVENTMAP_H__
00003
00004 #include<SDL/SDL.h>
00005 #include<SDL/SDL_rwops.h>
00006 #include<SDL/begin_code.h>
00007
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039
00044
00046 #define FILTER_NOKEYUP 0x0001
00047
00048 #define FILTER_NOKEYMOD 0x0002
00049
00050 #define FILTER_NOJOYBUP 0x0004
00051
00052 #define FILTER_NOMOUSEUP 0x0008
00053
00054 #define FILTER_NOCENTER 0x0010
00055
00056 #define FILTER_NOMOUSEMOD 0x0020
00057
00059 #define FILTER_ALL 0x00ff
00060
00062 typedef struct SDL_EventMap SDL_EventMap;
00064 DECLSPEC Uint32 SDLCALL SDLH_HashEvent(SDL_Event *event, Uint32 flags);
00066 DECLSPEC const char * SDLCALL SDLH_HashName(Uint32 hash);
00074 DECLSPEC SDL_EventMap * SDLCALL SDLH_Create();
00076 DECLSPEC void SDLCALL SDLH_Free(SDL_EventMap *);
00078 DECLSPEC void SDLCALL SDLH_Clear(SDL_EventMap *);
00080 DECLSPEC int SDLCALL SDLH_RemoveEvent(SDL_EventMap *,Uint32 hash);
00082 DECLSPEC int SDLCALL SDLH_RemoveID(SDL_EventMap *, int id);
00084 DECLSPEC int SDLCALL SDLH_AddHashEvent(SDL_EventMap *, Uint32, int id);
00086 DECLSPEC int SDLCALL SDLH_AddEvent(SDL_EventMap *, SDL_Event *,int, Uint32 flag);
00088 DECLSPEC Uint32 SDLCALL SDLH_Learn(SDL_EventMap *, int eid, Uint32 flags);
00090 DECLSPEC int SDLCALL SDLH_TranslateEvent(SDL_EventMap *, SDL_Event *, Uint32 flag);
00092 DECLSPEC int SDLCALL SDLH_Save(SDL_EventMap *, SDL_RWops *stream);
00094 DECLSPEC SDL_EventMap * SDLCALL SDLH_Load(SDL_RWops *stream);
00097 #ifdef __cplusplus
00098 }
00099 #endif
00100
00101 #include <SDL/close_code.h>
00102
00103 #endif