From e0cade190fceaa0061ce166d25d25eaf0c15717b Mon Sep 17 00:00:00 2001 From: Joao Carlos Mendes Luis Date: Sat, 12 Sep 2020 16:47:43 -0300 Subject: [PATCH] Add new key for ABNT keyboards: abnt_slash USB Scan Code: 0x87 Windows Direct Input Name: ABNT_C1 --- src/classes/Keyboard.h | 4 +++- src/helpers/help.cpp | 1 + src/helpers/utils.cpp | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/classes/Keyboard.h b/src/classes/Keyboard.h index ccb2837..3399fbb 100644 --- a/src/classes/Keyboard.h +++ b/src/classes/Keyboard.h @@ -152,6 +152,8 @@ class LedKeyboard { num_minus, num_plus, num_enter, num_1, num_2, num_3, num_4, num_5, num_6, num_7, num_8, num_9, num_0, num_dot, intl_backslash, menu, + + abnt_slash = static_cast(KeyAddressGroup::keys) << 8 | 0x87, ctrl_left = static_cast(KeyAddressGroup::keys) << 8 | 0xe0, shift_left, alt_left, win_left, @@ -248,7 +250,7 @@ class LedKeyboard { Key::n1, Key::n2, Key::n3, Key::n4, Key::n5, Key::n6, Key::n7, Key::n8, Key::n9, Key::n0, Key::enter, Key::backspace, Key::tab, Key::space, Key::minus, Key::equal, Key::open_bracket, Key::close_bracket, Key::backslash, Key::dollar, Key::semicolon, Key::quote, Key::tilde, - Key::comma, Key::period, Key::slash, Key::caps_lock, Key::intl_backslash + Key::comma, Key::period, Key::slash, Key::caps_lock, Key::intl_backslash, Key::abnt_slash }; bool m_isOpen = false; diff --git a/src/helpers/help.cpp b/src/helpers/help.cpp index aac491a..5638e93 100644 --- a/src/helpers/help.cpp +++ b/src/helpers/help.cpp @@ -262,6 +262,7 @@ namespace help { cout<<" comma"<