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
4
namespace
input
5
{
6
// ----------------------------------------------------------------------------
7
void
initialize_os_key_map
(
bimap<key_code, int>
& key_map)
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
input::bimap
Definition
bimap.hpp:9
input::bimap::map
void map(const K key, const V value)
Definition
bimap.hpp:52
input::bimap::clear
void clear()
Definition
bimap.hpp:14
input
Definition
action_id.hpp:5
input::initialize_os_key_map
void initialize_os_key_map(bimap< key_code, int > &key_map)
Definition
os_key_map.cpp:7
input::key_code
key_code
Definition
key.hpp:6
os_key_map.hpp
UnravelEngine
UnravelEngine
engine
engine
input
action_map
impl
os_key_map.cpp
Generated by
1.12.0