mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-26 10:48:58 +00:00
Extract mouse processor trait
Mainly for consistency with the keyboard processor trait. This could allow to provide alternative mouse processors.
This commit is contained in:
parent
bcf5a9750f
commit
f7d1efdf1d
9 changed files with 298 additions and 184 deletions
|
@ -12,12 +12,14 @@
|
|||
#include "scrcpy.h"
|
||||
#include "screen.h"
|
||||
#include "trait/key_processor.h"
|
||||
#include "trait/mouse_processor.h"
|
||||
|
||||
struct input_manager {
|
||||
struct controller *controller;
|
||||
struct screen *screen;
|
||||
|
||||
struct sc_key_processor *kp;
|
||||
struct sc_mouse_processor *mp;
|
||||
|
||||
bool control;
|
||||
bool forward_all_clicks;
|
||||
|
@ -41,6 +43,7 @@ struct input_manager {
|
|||
void
|
||||
input_manager_init(struct input_manager *im, struct controller *controller,
|
||||
struct screen *screen, struct sc_key_processor *kp,
|
||||
struct sc_mouse_processor *mp,
|
||||
const struct scrcpy_options *options);
|
||||
|
||||
bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue