qt: Add missing evdev mappings and fix offset in native evdev mode

This commit is contained in:
RichardG867
2023-04-08 18:45:10 -03:00
parent a80e9501b8
commit ae92023279
3 changed files with 32 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ extern "C" {
#define IS_DEC_DIGIT(c) (((c) >= '0') && ((c) <= '9'))
#define IS_HEX_DIGIT(c) (IS_DEC_DIGIT(c) || (((c) >= 'A') && ((c) <= 'F')) || (((c) >= 'a') && ((c) <= 'f')))
static std::unordered_map<std::string, uint16_t> xkb_keycodes{
static std::unordered_map<std::string, uint16_t> xkb_keycodes = {
{"ESC", 0x01},
{"AE01", 0x02},
{"AE02", 0x03},