#pragma once #include #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);