4a99a1ba4c
New pref to choose between Pov or Keys for D Pad, making it work similarly to C Pad, C Stick and Touch. Will automatically check whether vJoy has 4-way Pov or Continuous Pov enabled and choose the correct one to output.
35 lines
573 B
C
35 lines
573 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "keys.h"
|
|
|
|
enum analogue {
|
|
mouse,
|
|
joystick1,
|
|
joystick2,
|
|
keys,
|
|
};
|
|
|
|
enum dPad {
|
|
key,
|
|
pov,
|
|
cPov,
|
|
};
|
|
|
|
struct settings {
|
|
int port;
|
|
int throttle;
|
|
enum analogue circlePad;
|
|
enum analogue cStick;
|
|
enum analogue touch;
|
|
enum dPad dPad;
|
|
int mouseSpeed;
|
|
UINT vJoyDevice;
|
|
struct keyMapping A, B, X, Y, L, R, ZL, ZR, Start, Select, Tap, Left, Right, Up, Down, PadLeft, PadRight, PadUp, PadDown, CSLeft, CSRight, CSUp, CSDown;
|
|
};
|
|
|
|
extern struct settings settings;
|
|
extern struct settings defaultSettings;
|
|
|
|
bool readSettings(void);
|