]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/profile.h
Replace QtGui includes with QtWidgets, add QT += widgets for qmake
[virtualjaguar] / src / gui / profile.h
index 473d8320231889df69119109b543f4be07047fa5..6c5a96fa2394912ba83f0d853d2d56b657397097 100644 (file)
@@ -1,12 +1,13 @@
 #ifndef __PROFILE_H__
 #define __PROFILE_H__
 
+#include <QtWidgets>
 #include <stdint.h>
 
 class QComboBox;
 class QSettings;
 
-#define MAX_PROFILES  64
+#define MAX_PROFILES  64               // 64 profiles ought to be enough for everybody
 #define CONTROLLER1   0x01
 #define CONTROLLER2   0x02
 
@@ -15,12 +16,14 @@ struct Profile
 {
        int device;                                     // Host device number (-1 == invalid profile)
        char mapName[32];                       // Human readable map name
-       int preferredController;        // CONTROLLER1 and/or CONTROLLER2
+       int preferredSlot;                      // CONTROLLER1 and/or CONTROLLER2
        uint32_t map[21];                       // Keys/buttons/axes
 };
 
 
 // Function prototypes
+void SaveProfiles(void);
+void RestoreProfiles(void);
 void ReadProfiles(QSettings *);
 void WriteProfiles(QSettings *);
 int GetFreeProfile(void);
@@ -36,8 +39,8 @@ void AutoConnectProfiles(void);
 extern Profile profile[];
 extern int controller1Profile;
 extern int controller2Profile;
-extern int gamepad1Slot;
-extern int gamepad2Slot;
+extern int gamepadIDSlot1;
+extern int gamepadIDSlot2;
 //extern int numberOfProfiles;
 
 #endif // __PROFILE_H__