Skip to content

Commit

Permalink
update via to use the renamed "User" keycode
Browse files Browse the repository at this point in the history
  • Loading branch information
Univa committed May 31, 2024
1 parent 1d25d64 commit 5e3b0e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rumcake/src/via/protocol_12/keycodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ where
})
}),
Action::Custom(key) => match key {
Keycode::Custom(id) => {
Keycode::User(id) => {
if id as u16 <= 31 {
QMKKeycodeRanges::QK_KB as u16 + id as u16
} else {
Expand Down Expand Up @@ -1713,7 +1713,7 @@ where
}

if QMKKeycodeRanges::QK_KB as u16 <= keycode && keycode <= QMKKeycodeRanges::QK_KB_MAX as u16 {
return Some(Action::Custom(Keycode::Custom(
return Some(Action::Custom(Keycode::User(
(keycode - QMKKeycodeRanges::QK_KB as u16) as u8,
)));
}
Expand Down

0 comments on commit 5e3b0e8

Please sign in to comment.