mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-29 02:08:10 -07:00
BadUSB: BLE, media keys, Fn/Globe key commands (#3403)
* BadUSB: media keys, GLOBE command * f18 api table fix * BadUSB over BLE * Made PVS happy Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -14,6 +14,11 @@ extern "C" {
|
||||
/** Max number of simultaneously pressed keys (consumer control) */
|
||||
#define HID_CONSUMER_MAX_KEYS 2
|
||||
|
||||
/** OS-specific consumer keys, defined as "Reserved" in HID Usage Tables document */
|
||||
#define HID_CONSUMER_BRIGHTNESS_INCREMENT 0x006F
|
||||
#define HID_CONSUMER_BRIGHTNESS_DECREMENT 0x0070
|
||||
#define HID_CONSUMER_FN_GLOBE 0x029D
|
||||
|
||||
#define HID_KEYBOARD_NONE 0x00
|
||||
|
||||
/** HID keyboard modifier keys */
|
||||
@@ -259,6 +264,11 @@ bool furi_hal_hid_consumer_key_press(uint16_t button);
|
||||
*/
|
||||
bool furi_hal_hid_consumer_key_release(uint16_t button);
|
||||
|
||||
/** Clear all pressed consumer keys and send HID report
|
||||
*
|
||||
*/
|
||||
bool furi_hal_hid_consumer_key_release_all(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user