2009-02-11 09:24:56 +00:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
2009-02-17 22:45:29 +00:00
|
|
|
extern u8 ps2e;
|
|
|
|
|
2009-03-15 15:00:22 +00:00
|
|
|
enum PadType {
|
|
|
|
DisabledPad,
|
|
|
|
Dualshock2Pad,
|
|
|
|
GuitarPad
|
|
|
|
};
|
|
|
|
|
|
|
|
struct PadConfig {
|
|
|
|
PadType type;
|
|
|
|
u8 autoAnalog;
|
|
|
|
};
|
|
|
|
|
2009-02-11 09:24:56 +00:00
|
|
|
struct GeneralConfig {
|
|
|
|
public:
|
2009-03-15 15:00:22 +00:00
|
|
|
PadConfig padConfigs[2][4];
|
2009-02-11 09:24:56 +00:00
|
|
|
|
|
|
|
u8 closeHacks;
|
|
|
|
|
|
|
|
DeviceAPI keyboardApi;
|
|
|
|
DeviceAPI mouseApi;
|
|
|
|
|
|
|
|
// Derived value, calculated by GetInput().
|
|
|
|
u8 ignoreKeys;
|
|
|
|
|
2009-03-19 06:28:23 +00:00
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
u8 forceHide;
|
|
|
|
u8 mouseUnfocus;
|
|
|
|
u8 background;
|
|
|
|
u8 multipleBinding;
|
2009-02-11 09:24:56 +00:00
|
|
|
|
2009-03-19 06:28:23 +00:00
|
|
|
struct {
|
|
|
|
u8 directInput;
|
|
|
|
u8 xInput;
|
2009-09-12 13:10:17 +00:00
|
|
|
u8 dualShock3;
|
2009-03-19 06:28:23 +00:00
|
|
|
} gameApis;
|
|
|
|
|
|
|
|
u8 multitap[2];
|
|
|
|
|
|
|
|
u8 escapeFullscreenHack;
|
|
|
|
u8 disableScreenSaver;
|
|
|
|
u8 debug;
|
|
|
|
|
|
|
|
u8 saveStateTitle;
|
|
|
|
u8 GH2;
|
|
|
|
|
|
|
|
u8 vistaVolume;
|
|
|
|
};
|
|
|
|
u8 bools[1];
|
|
|
|
};
|
2009-02-11 20:47:41 +00:00
|
|
|
|
2009-03-11 17:25:51 +00:00
|
|
|
int volume;
|
|
|
|
|
|
|
|
// Unlike the others, not a changeable value.
|
|
|
|
DWORD osVersion;
|
|
|
|
|
2009-02-11 09:24:56 +00:00
|
|
|
wchar_t lastSaveConfigPath[MAX_PATH+1];
|
|
|
|
wchar_t lastSaveConfigFileName[MAX_PATH+1];
|
|
|
|
};
|
|
|
|
|
|
|
|
extern GeneralConfig config;
|
|
|
|
|
|
|
|
void UnloadConfigs();
|
|
|
|
|
|
|
|
void AddIgnore(LPARAM k);
|
|
|
|
|
2009-03-11 17:25:51 +00:00
|
|
|
void SetVolume(int volume);
|
|
|
|
|
2009-02-11 09:24:56 +00:00
|
|
|
int LoadSettings(int force = 0, wchar_t *file = 0);
|
|
|
|
|
|
|
|
// Refreshes the set of enabled devices.
|
|
|
|
void RefreshEnabledDevices(int updateDeviceList = 0);
|
|
|
|
|
2009-09-20 04:14:40 +00:00
|
|
|
void Configure();
|
2009-02-11 09:24:56 +00:00
|
|
|
#endif
|