Unravel Engine C++ Reference
Loading...
Searching...
No Matches
os_key_map.cpp
Go to the documentation of this file.
1#include "os_key_map.hpp"
2#include <ospp/event.h>
3
4namespace input
5{
6// ----------------------------------------------------------------------------
8{
9 key_map.clear();
10
11 for(int32_t code = os::key::code::unknown; code < os::key::code::count; ++code)
12 {
13 key_map.map(static_cast<key_code>(code), code);
14 }
15}
16} // namespace input
void map(const K key, const V value)
Definition bimap.hpp:52
void clear()
Definition bimap.hpp:14
void initialize_os_key_map(bimap< key_code, int > &key_map)
Definition os_key_map.cpp:7
key_code
Definition key.hpp:6