X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=801fb44bdbe31a55e9fce93a4cdd8fc10fcc9294;hb=b59a0eedca464cba38e8a6bcfae54db32ac6b15e;hp=c0fb030b671f4412eb5adf2ee739ed514000b606;hpb=a7d7881a5abf250befa4c59e1c336e7b40f9b2fb;p=rocksndiamonds.git diff --git a/src/libgame/system.h b/src/libgame/system.h index c0fb030b..801fb44b 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -48,6 +48,10 @@ #define DEFAULT_KEY_OKAY KSYM_Return #define DEFAULT_KEY_CANCEL KSYM_Escape +/* default shortcut keys */ +#define DEFAULT_KEY_SAVE_GAME KSYM_F1 +#define DEFAULT_KEY_LOAD_GAME KSYM_F2 + /* values for move directions */ #define MV_NO_MOVING 0 #define MV_LEFT (1 << 0) @@ -238,6 +242,8 @@ struct GfxInfo int vx, vy; int vxsize, vysize; + + boolean draw_deactivation_mask; }; struct ArtworkInfo @@ -281,6 +287,12 @@ struct SetupInputInfo struct SetupKeyboardInfo key; }; +struct SetupShortcutInfo +{ + Key save_game; + Key load_game; +}; + struct SetupInfo { char *player_name; @@ -302,6 +314,7 @@ struct SetupInfo boolean time_limit; boolean fullscreen; + struct SetupShortcutInfo shortcut; struct SetupInputInfo input[MAX_PLAYERS]; }; @@ -384,6 +397,7 @@ void InitGfxFieldInfo(int, int, int, int, int, int, int, int); void InitGfxDoor1Info(int, int, int, int); void InitGfxDoor2Info(int, int, int, int); void InitGfxScrollbufferInfo(int, int); +void SetDrawDeactivationMask(int ); inline void InitVideoDisplay(void); inline void CloseVideoDisplay(void);