X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsdl.h;h=4fec8030082d1927c3b7192dd03a7e5a0a789ed3;hb=0896ebe9d29a756c7adc005c6b93ff28f2fd396d;hp=c49894f6836deb17a4ad7f0a883cfbc3da74a3fb;hpb=888ee0497f046c51100416e0a033ec35d77fb45c;p=rocksndiamonds.git diff --git a/src/libgame/sdl.h b/src/libgame/sdl.h index c49894f6..4fec8030 100644 --- a/src/libgame/sdl.h +++ b/src/libgame/sdl.h @@ -4,7 +4,7 @@ // (c) 1995-2014 by Artsoft Entertainment // Holger Schemel // info@artsoft.org -// http://www.artsoft.org/ +// https://www.artsoft.org/ // ---------------------------------------------------------------------------- // sdl.h // ============================================================================ @@ -23,7 +23,7 @@ // definitions needed for "system.c" -#define SURFACE_FLAGS (0) +#define SURFACE_FLAGS (SDL_WINDOW_RESIZABLE) #define SET_TRANSPARENT_PIXEL (SDL_TRUE) #define UNSET_TRANSPARENT_PIXEL (SDL_FALSE) @@ -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 +const char *SDLGetRendererName(void); boolean SDLSetNativeSurface(SDL_Surface **); SDL_Surface *SDLGetNativeSurface(SDL_Surface *); void SDLCreateBitmapTextures(Bitmap *);