2009-02-11 09:24:56 +00:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
|
|
|
#include "InputManager.h"
|
2009-02-11 20:47:41 +00:00
|
|
|
#include "PS2Etypes.h"
|
2009-02-11 09:24:56 +00:00
|
|
|
|
2009-02-17 22:45:29 +00:00
|
|
|
extern u8 ps2e;
|
|
|
|
|
2009-02-11 09:24:56 +00:00
|
|
|
struct GeneralConfig {
|
|
|
|
public:
|
|
|
|
u8 disablePad[2];
|
|
|
|
|
|
|
|
u8 mouseUnfocus;
|
|
|
|
u8 disableScreenSaver;
|
|
|
|
u8 closeHacks;
|
|
|
|
|
|
|
|
u8 axisButtons;
|
|
|
|
DeviceAPI keyboardApi;
|
|
|
|
DeviceAPI mouseApi;
|
|
|
|
struct {
|
|
|
|
u8 directInput;
|
|
|
|
u8 xInput;
|
|
|
|
} gameApis;
|
|
|
|
u8 debug;
|
|
|
|
u8 background;
|
|
|
|
u8 multipleBinding;
|
|
|
|
u8 forceHide;
|
|
|
|
u8 GH2;
|
|
|
|
|
|
|
|
// Derived value, calculated by GetInput().
|
|
|
|
u8 ignoreKeys;
|
|
|
|
|
|
|
|
u8 GSThreadUpdates;
|
|
|
|
u8 escapeFullscreenHack;
|
|
|
|
|
|
|
|
u8 guitar[2];
|
|
|
|
u8 AutoAnalog[2];
|
|
|
|
|
2009-02-11 20:47:41 +00:00
|
|
|
u8 saveStateTitle;
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
int LoadSettings(int force = 0, wchar_t *file = 0);
|
|
|
|
|
|
|
|
void CALLBACK PADconfigure();
|
|
|
|
|
|
|
|
// Refreshes the set of enabled devices.
|
|
|
|
void RefreshEnabledDevices(int updateDeviceList = 0);
|
|
|
|
|
|
|
|
#endif
|