Skip to content

Commit

Permalink
feat(hid): Add apple globe keycode
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Sep 22, 2023
1 parent 28ce23d commit e1fa67c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/include/dt-bindings/zmk/keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -1439,3 +1439,7 @@
#define C_KEYBOARD_INPUT_ASSIST_CANCEL \
(ZMK_HID_USAGE(HID_USAGE_CONSUMER, HID_USAGE_CONSUMER_KEYBOARD_INPUT_ASSIST_CANCEL))
#define C_KBIA_CANCEL (C_KEYBOARD_INPUT_ASSIST_CANCEL)

/* Apple Globe key */
#define C_KEYBOARD_LAYOUT_SELECT (ZMK_HID_USAGE(HID_USAGE_CONSUMER, 0x029D))
#define GLOBE (C_KEYBOARD_LAYOUT_SELECT)
1 change: 1 addition & 0 deletions docs/src/data/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default {
"C_AC_DESKTOP_SHOW_ALL_WINDOWS",
"C_AC_DESKTOP_SHOW_ALL_APPLICATIONS",
"C_VOICE_COMMAND",
"C_KEYBOARD_LAYOUT_SELECT",
],
applications: [
"C_AL_NEXT_TASK",
Expand Down
21 changes: 21 additions & 0 deletions docs/src/data/hid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7865,4 +7865,25 @@ export default [
},
footnotes: {},
},
{
names: ["C_KEYBOARD_LAYOUT_SELECT", "GLOBE"],
description: "Layout Select (Apple Globe)",
context: "Consumer AC",
clarify: true,
usages: [
{
application: consumerApplication,
item: usage(consumerPage, 0x29d),
},
],
documentation: "https://usb.org/sites/default/files/hut1_2.pdf#page=150",
os: {
windows: null,
linux: true,
android: null,
macos: true,
ios: null,
},
footnotes: {},
},
];

0 comments on commit e1fa67c

Please sign in to comment.