3dscontroller-ng/PC/include/settings.h
Poke c84990d3dd Configurable dual joysticks
Added the ability to map mouse, circle pad and c stick to 2 separate
joysticks.
This was partly added before for c stick but now it's configurable.
2015-09-06 11:56:53 +09:30

26 lines
430 B
C

#pragma once
#include <stdbool.h>
#include "keys.h"
enum analogue {
mouse,
joystick1,
joystick2,
};
struct settings {
int port;
int throttle;
enum analogue circlePad;
enum analogue cStick;
enum analogue touch;
int mouseSpeed;
struct keyMapping A, B, X, Y, L, R, ZL, ZR, Left, Right, Up, Down, Start, Select, Tap;
};
extern struct settings settings;
extern struct settings defaultSettings;
bool readSettings(void);