15 lines
258 B
C
Raw Permalink Normal View History

2021-03-21 19:31:49 +01:00
#include <map>
class Input {
public:
inline static std::map<int, bool> keys_down;
static void set_key_down(int key, bool down) {
keys_down[key] = down;
}
static bool is_key_down(int key) {
return keys_down[key];
}
};