mirror of
https://github.com/simple64/simple64.git
synced 2026-11-14 11:28:42 +01:00
36 lines
964 B
C
36 lines
964 B
C
#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
|