HUTRR116 added support for a new usage titled "System Accessibility Binding" which toggles a system-wide bound accessibility UI or command. This commit simply adds a new event code for the usage.
Unified · Split
| @@ -3366,6 +3366,7 @@ static const char *keys[KEY_MAX + 1] = { · 3365 unmodified lines | ||
| 3366 | 3366 | [KEY_CAMERA_ACCESS_ENABLE] = "CameraAccessEnable", |
| 3367 | 3367 | [KEY_CAMERA_ACCESS_DISABLE] = "CameraAccessDisable", |
| 3368 | 3368 | [KEY_CAMERA_ACCESS_TOGGLE] = "CameraAccessToggle", |
| 3369 | + [KEY_ACCESSIBILITY] = "Accessibility", | |
| 3369 | 3370 | [KEY_DICTATE] = "Dictate", |
| 3370 | 3371 | [KEY_MICMUTE] = "MicrophoneMute", |
| 3371 | 3372 | [KEY_BRIGHTNESS_MIN] = "BrightnessMin", |
| @@ -836,6 +836,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel · 835 unmodified lines | ||
| 836 | 836 | if ((usage->hid & 0xf0) == 0xa0) { /* SystemControl */ |
| 837 | 837 | switch (usage->hid & 0xf) { |
| 838 | 838 | case 0x9: map_key_clear(KEY_MICMUTE); break; |
| 839 | + case 0xa: map_key_clear(KEY_ACCESSIBILITY); break; | |
| 839 | 840 | default: goto ignore; |
| 840 | 841 | } |
| 841 | 842 | break; |
| @@ -618,6 +618,7 @@ · 617 unmodified lines | ||
| 618 | 618 | #define KEY_CAMERA_ACCESS_ENABLE 0x24b /* Enables programmatic access to camera devices. (HUTRR72) */ |
| 619 | 619 | #define KEY_CAMERA_ACCESS_DISABLE 0x24c /* Disables programmatic access to camera devices. (HUTRR72) */ |
| 620 | 620 | #define KEY_CAMERA_ACCESS_TOGGLE 0x24d /* Toggles the current state of the camera access control. (HUTRR72) */ |
| 621 | +#define KEY_ACCESSIBILITY 0x24e /* Toggles the system bound accessibility UI/command (HUTRR116) */ | |
| 621 | 622 | |
| 622 | 623 | #define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */ |
| 623 | 624 | #define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */ |