mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 22:49:55 +00:00
21 lines
364 B
C++
21 lines
364 B
C++
#ifndef MWINPUT_CONTROLSWITCH_H
|
|
#define MWINPUT_CONTROLSWITCH_H
|
|
|
|
#include <map>
|
|
|
|
namespace MWInput
|
|
{
|
|
class ControlSwitch
|
|
{
|
|
public:
|
|
ControlSwitch();
|
|
|
|
bool get(const std::string& key);
|
|
void set(const std::string& key, bool value);
|
|
void clear();
|
|
|
|
private:
|
|
std::map<std::string, bool> mSwitches;
|
|
};
|
|
}
|
|
#endif
|