Romain Vimont
6b6e508d37
Extract HID events struct
...
An event contained several fields:
- the accessory id
- the HID event data
- a field ack_to_wait specific to the AOA implementation.
Extract the HID event part to prepare the factorization of HID event
creation.
2024-02-29 20:20:21 +01:00
Romain Vimont
8a78188233
Embed HID event data
...
In the implementation, an HID event is at most 8 bytes. Embed the data
in the HID event structure to avoid allocations and simplify the code.
2024-02-29 20:20:21 +01:00
Romain Vimont
2fd52b5533
Rename hid event "buffer" to "data"
...
This fields contains the HID event data (there is no "bufferization").
2024-02-29 20:20:21 +01:00
Romain Vimont
d914f9944e
Fix HID mouse documentation
...
The size of a mouse HID event is 4 bytes.
2024-02-29 20:20:21 +01:00
Romain Vimont
8d91cda4f6
Improve HID event push error message
...
On HID event push failure, add the event type in the error message.
2022-02-24 23:28:20 +01:00
Romain Vimont
59656fe649
Fix typo in error message
2022-02-24 23:26:12 +01:00
Romain Vimont
2762f5d183
Move AOA/HID code to usb/
...
PR #2974 <https://github.com/Genymobile/scrcpy/pull/2974 >
2022-01-27 23:35:34 +01:00