X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=801fb44bdbe31a55e9fce93a4cdd8fc10fcc9294;hb=b59a0eedca464cba38e8a6bcfae54db32ac6b15e;hp=184af955db30eccc303162ced43fa2d23fb6af4c;hpb=fe158e864d3fa4b0221e9c88d8dfff0157051396;p=rocksndiamonds.git diff --git a/src/libgame/system.h b/src/libgame/system.h index 184af955..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) @@ -63,6 +67,7 @@ #define MB_MENU_CHOICE FALSE #define MB_MENU_MARK TRUE #define MB_MENU_INITIALIZE (-1) +#define MB_MENU_LEAVE (-2) #define MB_LEFTBUTTON 1 #define MB_MIDDLEBUTTON 2 #define MB_RIGHTBUTTON 3 @@ -237,6 +242,8 @@ struct GfxInfo int vx, vy; int vxsize, vysize; + + boolean draw_deactivation_mask; }; struct ArtworkInfo @@ -280,6 +287,12 @@ struct SetupInputInfo struct SetupKeyboardInfo key; }; +struct SetupShortcutInfo +{ + Key save_game; + Key load_game; +}; + struct SetupInfo { char *player_name; @@ -301,6 +314,7 @@ struct SetupInfo boolean time_limit; boolean fullscreen; + struct SetupShortcutInfo shortcut; struct SetupInputInfo input[MAX_PLAYERS]; }; @@ -383,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);