|
@@ -30,20 +30,6 @@
|
|
|
|
|
|
#include "key_mapping_x11.h"
|
|
#include "key_mapping_x11.h"
|
|
|
|
|
|
-#include "core/templates/hash_map.h"
|
|
|
|
-
|
|
|
|
-struct HashMapHasherKeys {
|
|
|
|
- static _FORCE_INLINE_ uint32_t hash(const Key p_key) { return hash_fmix32(static_cast<uint32_t>(p_key)); }
|
|
|
|
- static _FORCE_INLINE_ uint32_t hash(const char32_t p_uchar) { return hash_fmix32(p_uchar); }
|
|
|
|
- static _FORCE_INLINE_ uint32_t hash(const unsigned p_key) { return hash_fmix32(p_key); }
|
|
|
|
- static _FORCE_INLINE_ uint32_t hash(const KeySym p_key) { return hash_fmix32(p_key); }
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-HashMap<KeySym, Key, HashMapHasherKeys> xkeysym_map;
|
|
|
|
-HashMap<unsigned int, Key, HashMapHasherKeys> scancode_map;
|
|
|
|
-HashMap<Key, unsigned int, HashMapHasherKeys> scancode_map_inv;
|
|
|
|
-HashMap<KeySym, char32_t, HashMapHasherKeys> xkeysym_unicode_map;
|
|
|
|
-
|
|
|
|
void KeyMappingX11::initialize() {
|
|
void KeyMappingX11::initialize() {
|
|
// X11 Keysym to Godot Key map.
|
|
// X11 Keysym to Godot Key map.
|
|
|
|
|