X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fprofile.h;h=6c5a96fa2394912ba83f0d853d2d56b657397097;hb=ddac3e0e78a5c4b0236bdeaff18cf9a3ac4ba4f7;hp=473d8320231889df69119109b543f4be07047fa5;hpb=d1e404e2f488610a99f844783dca15a7525c3813;p=virtualjaguar diff --git a/src/gui/profile.h b/src/gui/profile.h index 473d832..6c5a96f 100644 --- a/src/gui/profile.h +++ b/src/gui/profile.h @@ -1,12 +1,13 @@ #ifndef __PROFILE_H__ #define __PROFILE_H__ +#include #include 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__