mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-20 05:14:31 +01:00
The HID ids (accessory ids or UHID ids) were defined by the keyboard and mouse implementations. Instead, define them in the common HID part, and make that id part of the sc_hid_event. This prepares the introduction of gamepad support, which will handle several gamepads (and ids) in the common HID gamepad code. PR #5270 <https://github.com/Genymobile/scrcpy/pull/5270>
17 lines
223 B
C
17 lines
223 B
C
#ifndef SC_HID_EVENT_H
|
|
#define SC_HID_EVENT_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#define SC_HID_MAX_SIZE 8
|
|
|
|
struct sc_hid_event {
|
|
uint16_t hid_id;
|
|
uint8_t data[SC_HID_MAX_SIZE];
|
|
uint8_t size;
|
|
};
|
|
|
|
#endif
|