9 #define MAX_PROFILES 64 // 64 profiles ought to be enough for everybody
10 #define CONTROLLER1 0x01
11 #define CONTROLLER2 0x02
16 int device
; // Host device number (-1 == invalid profile)
17 char mapName
[32]; // Human readable map name
18 int preferredSlot
; // CONTROLLER1 and/or CONTROLLER2
19 uint32_t map
[21]; // Keys/buttons/axes
23 // Function prototypes
24 void SaveProfiles(void);
25 void RestoreProfiles(void);
26 void ReadProfiles(QSettings
*);
27 void WriteProfiles(QSettings
*);
28 int GetFreeProfile(void);
29 void DeleteProfile(int);
30 int FindDeviceNumberForName(const char *);
31 int FindMappingsForDevice(int, QComboBox
*);
32 int FindUsableProfiles(QComboBox
*);
33 bool ConnectProfileToController(int, int);
34 void AutoConnectProfiles(void);
38 extern Profile profile
[];
39 extern int controller1Profile
;
40 extern int controller2Profile
;
41 extern int gamepadIDSlot1
;
42 extern int gamepadIDSlot2
;
43 //extern int numberOfProfiles;
45 #endif // __PROFILE_H__