123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef KEY_MAPPING_WINDOWS_H
- #define KEY_MAPPING_WINDOWS_H
- #include "core/os/keyboard.h"
- #define WIN32_LEAN_AND_MEAN
- #include <windows.h>
- #include <winuser.h>
- class KeyMappingWindows {
- KeyMappingWindows() {}
- public:
- static void initialize();
- static Key get_keysym(unsigned int p_code);
- static unsigned int get_scancode(Key p_keycode);
- static Key get_scansym(unsigned int p_code, bool p_extended);
- static bool is_extended_key(unsigned int p_code);
- static KeyLocation get_location(unsigned int p_code, bool p_extended);
- };
- #endif
|