Add "AC Next Keyboard Layout Select" consumer usage entry (macOS Globe key) (#22256)

This commit is contained in:
Ryan 2023-10-31 13:19:53 +11:00 committed by GitHub
parent 49fd13f596
commit 6979794bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,8 +105,9 @@ enum consumer_usages {
AC_STOP = 0x226,
AC_REFRESH = 0x227,
AC_BOOKMARKS = 0x22A,
AC_MISSION_CONTROL = 0x29F,
AC_LAUNCHPAD = 0x2A0
AC_NEXT_KEYBOARD_LAYOUT_SELECT = 0x29D,
AC_DESKTOP_SHOW_ALL_WINDOWS = 0x29F,
AC_SOFT_KEY_LEFT = 0x2A0
};
/* Generic Desktop Page (0x01)
@ -302,9 +303,9 @@ static inline uint16_t KEYCODE2CONSUMER(uint8_t key) {
case KC_WWW_FAVORITES:
return AC_BOOKMARKS;
case KC_MISSION_CONTROL:
return AC_MISSION_CONTROL;
return AC_DESKTOP_SHOW_ALL_WINDOWS;
case KC_LAUNCHPAD:
return AC_LAUNCHPAD;
return AC_SOFT_KEY_LEFT;
default:
return 0;
}