example/ble_hid_device_demo fix the wrong mask value according to HID protocol
This commit is contained in:
parent
9583c29f27
commit
81ebffc0ad
1 changed files with 9 additions and 8 deletions
|
@ -50,14 +50,15 @@ typedef enum {
|
|||
ESP_HIDD_DEINIT_FAILED = 0,
|
||||
} esp_hidd_deinit_state_t;
|
||||
|
||||
#define LEFT_CONTROL_KEY_MASK (1 >> 0)
|
||||
#define LEFT_SHIFT_KEY_MASK (1 >> 1)
|
||||
#define LEFT_ALT_KEY_MASK (1 >> 2)
|
||||
#define LEFT_GUI_KEY_MASK (1 >> 3)
|
||||
#define RIGHT_CONTROL_KEY_MASK (1 >> 4)
|
||||
#define RIGHT_SHIFT_KEY_MASK (1 >> 5)
|
||||
#define RIGHT_ALT_KEY_MASK (1 >> 6)
|
||||
#define RIGHT_GUI_KEY_MASK (1 >> 7)
|
||||
#define LEFT_CONTROL_KEY_MASK (1 << 0)
|
||||
#define LEFT_SHIFT_KEY_MASK (1 << 1)
|
||||
#define LEFT_ALT_KEY_MASK (1 << 2)
|
||||
#define LEFT_GUI_KEY_MASK (1 << 3)
|
||||
#define RIGHT_CONTROL_KEY_MASK (1 << 4)
|
||||
#define RIGHT_SHIFT_KEY_MASK (1 << 5)
|
||||
#define RIGHT_ALT_KEY_MASK (1 << 6)
|
||||
#define RIGHT_GUI_KEY_MASK (1 << 7)
|
||||
|
||||
typedef uint8_t key_mask_t;
|
||||
/**
|
||||
* @brief HIDD callback parameters union
|
||||
|
|
Loading…
Reference in a new issue