]> Shamusworld >> Repos - stargem2/blobdiff - src/settings.h
Added config file key bindings, general code cleanup
[stargem2] / src / settings.h
index 1fcca6132c4c8392b30a481dfccf6ac5c7861ef9..a768a75ac61caaa7414b5ca1a1a2207d3ad5b877 100755 (executable)
 #endif
 #include "types.h"
 
+enum { S_KEY_FIRE = 0, S_KEY_THRUST, S_KEY_SMARTBOMB, S_KEY_HYPERSPACE, S_KEY_REVERSE,
+       S_KEY_UP, S_KEY_DOWN, S_KEY_INVISO, S_KEY_1P_START, S_KEY_2P_START, S_KEY_LEFT_COIN,
+       S_KEY_CENTER_COIN, S_KEY_RIGHT_COIN, S_KEY_AUTO_UP, S_KEY_ADVANCE, S_KEY_HS_RESET,
+       S_KEY_SLAM_SWITCH };
+
 // Settings struct
 
 struct Settings
@@ -27,11 +32,12 @@ struct Settings
        uint32 frameSkip;
        uint32 renderType;
        bool autoStateSaving;                                           // Auto-state loading/saving on entry/exit
-       
-       // Keybindings in order of U, D, L, R, C, B, A, Op, Pa, 0-9, #, *
 
-       uint16 p1KeyBindings[21];
-       uint16 p2KeyBindings[21];
+       // Keybindings in order of fire, thrust, smartbomb, hyperspace, reverse, up, down, inviso,
+       // 1 player start, 2 player start, left coin, center coin, right coin, auto up, advance,
+       // high score reset, slam switch
+
+       uint16 keyBindings[21];
 
        // Paths
 
@@ -40,8 +46,6 @@ struct Settings
        char diskImagePath1[MAX_PATH];
        char diskImagePath2[MAX_PATH];
        char autoStatePath[MAX_PATH];
-//     char CDBootPath[MAX_PATH];
-//     char EEPROMPath[MAX_PATH];
 };
 
 // Render types