9 #define MAX_PROFILES 64
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 preferredController; // CONTROLLER1 and/or CONTROLLER2
19 uint32_t map[21]; // Keys/buttons/axes
23 // Function prototypes
24 void ReadProfiles(QSettings *);
25 void WriteProfiles(QSettings *);
26 int GetFreeProfile(void);
27 void DeleteProfile(int);
28 int FindDeviceNumberForName(const char *);
29 int FindMappingsForDevice(int, QComboBox *);
30 int FindUsableProfiles(QComboBox *);
31 bool ConnectProfileToController(int, int);
32 void AutoConnectProfiles(void);
36 extern Profile profile[];
37 extern int controller1Profile;
38 extern int controller2Profile;
39 extern int gamepad1Slot;
40 extern int gamepad2Slot;
41 //extern int numberOfProfiles;
43 #endif // __PROFILE_H__