mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
22 lines
364 B
C++
22 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
|