1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include "gameCommon.h" #ifndef SETTINGS_H #define SETTINGS_H // What is the player using for control. typedef enum ControlMode { JOYSTICK_CONTROL, KEYBOARD_AND_MOUSE_CONTROL } ControlMode; typedef struct Settings { float mouseSensitivity; float scrollBarSpeed; ControlMode controlMode; } Settings; void initSettings(Settings * settings); #endif