summaryrefslogtreecommitdiff
path: root/app/include/zmk/events/keycode-state-changed.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/include/zmk/events/keycode-state-changed.h')
-rw-r--r--app/include/zmk/events/keycode-state-changed.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/include/zmk/events/keycode-state-changed.h b/app/include/zmk/events/keycode-state-changed.h
index fe47a0f..7a423a5 100644
--- a/app/include/zmk/events/keycode-state-changed.h
+++ b/app/include/zmk/events/keycode-state-changed.h
@@ -24,8 +24,8 @@ ZMK_EVENT_DECLARE(keycode_state_changed);
static inline struct keycode_state_changed *keycode_state_changed_from_encoded(u32_t encoded,
bool pressed) {
- u16_t page = HID_EXT_USAGE_PAGE(encoded) & 0xFF;
- u16_t id = HID_EXT_USAGE_ID(encoded);
+ u16_t page = HID_USAGE_PAGE(encoded) & 0xFF;
+ u16_t id = HID_USAGE_ID(encoded);
zmk_mod_flags implicit_mods = SELECT_MODS(encoded);
if (!page) {