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 FindDeviceNumberForName(const char *);
27 int FindMappingsForDevice(int, QComboBox *);
28 bool ConnectProfileToController(int, int);
29 void AutoConnectProfiles(void);
33 extern Profile profile[];
34 extern int controller1Profile;
35 extern int controller2Profile;
36 extern int gamepad1Slot;
37 extern int gamepad2Slot;
38 //extern int numberOfProfiles;
40 #endif // __PROFILE_H__