30 lines
737 B
C
30 lines
737 B
C
|
#pragma once
|
||
|
#include <Common\stdtypes.h>
|
||
|
#include <string>
|
||
|
#include "N64Controller.h"
|
||
|
|
||
|
class CInputSettings
|
||
|
{
|
||
|
public:
|
||
|
CInputSettings();
|
||
|
~CInputSettings();
|
||
|
|
||
|
void LoadController(uint32_t ControlIndex, N64CONTROLLER & Controller);
|
||
|
void SaveController(uint32_t ControlIndex, const N64CONTROLLER & Controller);
|
||
|
|
||
|
private:
|
||
|
CInputSettings(const CInputSettings&);
|
||
|
CInputSettings& operator=(const CInputSettings&);
|
||
|
|
||
|
static BUTTON StrToButton(const char * Buffer);
|
||
|
static std::string ButtonToStr(const BUTTON & Button);
|
||
|
static std::string GUIDtoString(const GUID & guid);
|
||
|
|
||
|
void RegisterSettings(void);
|
||
|
};
|
||
|
|
||
|
extern CInputSettings * g_Settings;
|
||
|
|
||
|
void SetupInputSettings(void);
|
||
|
void CleanupInputSettings(void);
|