mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-16 03:14:28 +01:00
Split the mouse implementation using AOA and the code handling HID events, so that HID events can be reused for another protocol (UHID). PR #4473 <https://github.com/Genymobile/scrcpy/pull/4473>
24 lines
406 B
C
24 lines
406 B
C
#ifndef SC_MOUSE_AOA_H
|
|
#define SC_MOUSE_AOA_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "aoa_hid.h"
|
|
#include "trait/mouse_processor.h"
|
|
|
|
struct sc_mouse_aoa {
|
|
struct sc_mouse_processor mouse_processor; // mouse processor trait
|
|
|
|
struct sc_aoa *aoa;
|
|
};
|
|
|
|
bool
|
|
sc_mouse_aoa_init(struct sc_mouse_aoa *mouse, struct sc_aoa *aoa);
|
|
|
|
void
|
|
sc_mouse_aoa_destroy(struct sc_mouse_aoa *mouse);
|
|
|
|
#endif
|