X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.h;h=f279ebc4121309254fe5149827b1434671c141f6;hb=dbba72fb511aee11057e6db5d0e9a4d53c9a0ddc;hp=9fb16338fefba1760664a21e7ade264a1a190161;hpb=b641818c787e48bbf03ce2a0cd5b542c4c21e523;p=rocksndiamonds.git diff --git a/src/libgame/sdl.h b/src/libgame/sdl.h index 9fb16338..f279ebc4 100644 --- a/src/libgame/sdl.h +++ b/src/libgame/sdl.h @@ -17,7 +17,7 @@ #include #include #include -#if defined(PLATFORM_WIN32) +#if defined(PLATFORM_WINDOWS) #include #endif @@ -350,6 +350,12 @@ typedef struct UserEventInfo UserEvent; #define KSYM_FKEY_LAST KSYM_F12 #define KSYM_NUM_FKEYS (KSYM_FKEY_LAST - KSYM_FKEY_FIRST + 1) +#define KSYM_RAW(k) (((k) >= KSYM_a && \ + (k) <= KSYM_z) || \ + ((k) >= KSYM_0 && \ + (k) <= KSYM_9) || \ + (k) == KSYM_space) + #define KSYM_PRINTABLE(k) (((k) >= KSYM_space && \ (k) <= KSYM_z) || \ (k) == KSYM_Adiaeresis || \ @@ -380,8 +386,12 @@ typedef struct UserEventInfo UserEvent; KMOD_Meta | \ KMOD_Alt) +#define KMOD_TextInput (KMOD_Shift | KMOD_Alt_R) + + // SDL function definitions +void SDLSetAlpha(SDL_Surface *, boolean, int); const char *SDLGetRendererName(void); boolean SDLSetNativeSurface(SDL_Surface **); SDL_Surface *SDLGetNativeSurface(SDL_Surface *); @@ -418,7 +428,6 @@ void SDLDrawLine(Bitmap *, int, int, int, int, Uint32); Pixel SDLGetPixel(Bitmap *, int, int); void SDLPutPixel(Bitmap *, int, int, Pixel); -void SDLInvertArea(Bitmap *, int, int, int, int, Uint32); void SDLCopyInverseMasked(Bitmap *, Bitmap *, int, int, int, int, int, int); Bitmap *SDLZoomBitmap(Bitmap *, int, int);