6static void test(
const std::string& name1,
KeyCode code1,
bool canonical)
8 std::string name2 =
getName(code1);
10 CHECK(name2 == name1);
14 CHECK(code2 == code1);
16 std::string name3 =
getName(code2);
17 CHECK(name3 == name2);
20 CHECK(code3 == code2);
void test(const IterableBitSet< N > &s, std::initializer_list< size_t > list)
KeyCode combine(KeyCode key, KeyCode modifier)
Convenience method to create key combinations (hides ugly casts).
KeyCode
Constants that identify keys and key modifiers.
KeyCode getCode(string_view name)
Translate key name to key code.
std::string getName(KeyCode keyCode)
Translate key code to key name.