mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
This allows to handle HID open/close at the same place as HID input events (in the HID layer). This will be especially useful to manage HID gamepads, to avoid implementing one part in the HID layer and another part in the gamepad processor implementation.
31 lines
781 B
C
31 lines
781 B
C
#ifndef SC_HID_MOUSE_H
|
|
#define SC_HID_MOUSE_H
|
|
|
|
#include "common.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include "hid/hid_event.h"
|
|
#include "input_events.h"
|
|
|
|
#define SC_HID_ID_MOUSE 2
|
|
|
|
void
|
|
sc_hid_mouse_generate_open(struct sc_hid_open *hid_open);
|
|
|
|
void
|
|
sc_hid_mouse_generate_close(struct sc_hid_close *hid_close);
|
|
|
|
void
|
|
sc_hid_mouse_generate_input_from_motion(struct sc_hid_input *hid_input,
|
|
const struct sc_mouse_motion_event *event);
|
|
|
|
void
|
|
sc_hid_mouse_generate_input_from_click(struct sc_hid_input *hid_input,
|
|
const struct sc_mouse_click_event *event);
|
|
|
|
void
|
|
sc_hid_mouse_generate_input_from_scroll(struct sc_hid_input *hid_input,
|
|
const struct sc_mouse_scroll_event *event);
|
|
|
|
#endif
|