Add missing SC_ prefix for HID mouse event size

PR #5270 <https://github.com/Genymobile/scrcpy/pull/5270>
This commit is contained in:
Romain Vimont 2024-09-06 23:08:08 +02:00
parent 785099b74d
commit 1afc8ca368
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
// 1 byte for buttons + padding, 1 byte for X position, 1 byte for Y position, // 1 byte for buttons + padding, 1 byte for X position, 1 byte for Y position,
// 1 byte for wheel motion // 1 byte for wheel motion
#define HID_MOUSE_EVENT_SIZE 4 #define SC_HID_MOUSE_EVENT_SIZE 4
/** /**
* Mouse descriptor from the specification: * Mouse descriptor from the specification:
@ -126,7 +126,7 @@ const size_t SC_HID_MOUSE_REPORT_DESC_LEN =
static void static void
sc_hid_mouse_event_init(struct sc_hid_event *hid_event) { sc_hid_mouse_event_init(struct sc_hid_event *hid_event) {
hid_event->size = HID_MOUSE_EVENT_SIZE; hid_event->size = SC_HID_MOUSE_EVENT_SIZE;
// Leave hid_event->data uninitialized, it will be fully initialized by // Leave hid_event->data uninitialized, it will be fully initialized by
// callers // callers
} }