2014-12-06 13:29:38 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2015-03-21 12:28:25 +00:00
|
|
|
#include "keys.h"
|
|
|
|
|
2014-12-06 13:29:38 +00:00
|
|
|
enum analogue {
|
|
|
|
mouse,
|
|
|
|
joystick,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct settings {
|
2014-12-13 19:46:52 +00:00
|
|
|
int port;
|
2014-12-13 19:20:11 +00:00
|
|
|
int throttle;
|
2014-12-06 13:29:38 +00:00
|
|
|
enum analogue circlePad;
|
|
|
|
enum analogue touch;
|
2014-12-13 19:40:25 +00:00
|
|
|
int mouseSpeed;
|
2015-03-21 12:28:25 +00:00
|
|
|
struct keyMapping A, B, X, Y, L, R, Left, Right, Up, Down, Start, Select, Tap;
|
2014-12-06 13:29:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct settings settings;
|
|
|
|
extern struct settings defaultSettings;
|
|
|
|
|
|
|
|
bool readSettings(void);
|