Skip to content

Commit

Permalink
Fix for numpad decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
medzernik committed Feb 3, 2023
1 parent 43cfc0d commit 53997f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/constants/HIDmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ export class Hid {
}
static get NUMDECIMAL(): HidInfo {
return {
HIDcode: 99,
HIDcode: 133,
category: HIDCategory.Numpad,
displayString: 'Numpad Decimal',
webKeyId: 'NumpadDecimal',
Expand Down
6 changes: 3 additions & 3 deletions wooting-macro-backend/src/hid_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub static ref SCANCODE_TO_RDEV: HashMap<u32, Key> = {
scancode.insert(0x60, Key::Kp8); //NUMPAD8
scancode.insert(0x61, Key::Kp9); //NUMPAD9
scancode.insert(0x62, Key::Kp0); //NUMPAD0
scancode.insert(0x63, Key::Dot); //NUMPAD_DECIMAL
scancode.insert(0x85, Key::KpDelete); //NUMPAD_COMMA (KP_DELETE)

scancode.insert(0x64, Key::IntlBackslash); //INTL_BACKSLASH
scancode.insert(0x65, Key::Function); //CONTEXT_MENU
Expand All @@ -198,7 +198,7 @@ pub static ref SCANCODE_TO_RDEV: HashMap<u32, Key> = {



// scancode.insert(0x85, Key::Key); //NUMPAD_COMMA
// scancode.insert(0x85, Key::Key); //NUMPAD_COMMA (KP_DELETE)
//
// scancode.insert(0x87, Key::Key); //INTL_RO
// scancode.insert(0x88, Key::Key); //KANA_MODE
Expand Down Expand Up @@ -382,7 +382,7 @@ pub static ref SCANCODE_TO_HID: HashMap<Key, u32> = {
scancode.insert(Key::Kp8, 0x60); //NUMPAD8
scancode.insert(Key::Kp9, 0x61); //NUMPAD9
scancode.insert(Key::Kp0, 0x62); //NUMPAD0
scancode.insert(Key::Dot, 0x63); //NUMPAD_DECIMAL
scancode.insert(Key::KpDelete, 0x85); //NUMPAD_COMMA (KP_DELETE)

scancode.insert(Key::IntlBackslash, 0x64); //INTL_BACKSLASH
scancode.insert(Key::Function, 0x65); //CONTEXT_MENU
Expand Down
1 change: 0 additions & 1 deletion wooting-macro-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ impl MacroBackend {

let trigger_list = inner_triggers.blocking_read().clone();

debug!("TRIGGER LIST: {:#?}", trigger_list);

let check_these_macros = match trigger_list.get(&first_key) {
None => {
Expand Down

0 comments on commit 53997f3

Please sign in to comment.