3dscontroller-ng/PC/include/settings.h

27 lines
430 B
C
Raw Normal View History

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,
joystick1,
joystick2,
2014-12-06 13:29:38 +00:00
};
struct settings {
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 cStick;
2014-12-06 13:29:38 +00:00
enum analogue touch;
2014-12-13 19:40:25 +00:00
int mouseSpeed;
struct keyMapping A, B, X, Y, L, R, ZL, ZR, 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);