-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.h
35 lines (29 loc) · 964 Bytes
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __MAIN_H__
#define __MAIN_H__
#include <QString>
#include <SDL2/SDL.h>
typedef struct
{
CONTROL *control; // pointer to CONTROL struct in Core library
SDL_GameController *gamepad;
SDL_Joystick *joystick;
QString device_path;
QString profile;
int deadzone;
int range;
float sensitivity;
} SController;
extern "C"
{
EXPORT void CALL PluginConfig();
}
// Some stuff from n-rage plugin
#define RD_GETSTATUS 0x00 // get status
#define RD_READKEYS 0x01 // read button values
#define RD_READPAK 0x02 // read from controllerpack
#define RD_WRITEPAK 0x03 // write to controllerpack
#define RD_RESETCONTROLLER 0xff // reset controller
#define RD_READEEPROM 0x04 // read eeprom
#define RD_WRITEEPROM 0x05 // write eeprom
#define PAK_IO_RUMBLE 0xC000 // the address where rumble-commands are sent to
#endif