mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-04 07:09:06 +00:00
Explicitly pass control flag to input manager
Replace the "global" control flag in the input_manager by a function parameter to make explicit that the behavior depends whether --no-control has been set.
This commit is contained in:
parent
6baed8a06f
commit
f7efafd846
3 changed files with 11 additions and 16 deletions
|
@ -13,7 +13,6 @@ struct input_manager {
|
|||
struct controller *controller;
|
||||
struct video_buffer *video_buffer;
|
||||
struct screen *screen;
|
||||
bool control;
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -22,7 +21,8 @@ input_manager_process_text_input(struct input_manager *input_manager,
|
|||
|
||||
void
|
||||
input_manager_process_key(struct input_manager *input_manager,
|
||||
const SDL_KeyboardEvent *event);
|
||||
const SDL_KeyboardEvent *event,
|
||||
bool control);
|
||||
|
||||
void
|
||||
input_manager_process_mouse_motion(struct input_manager *input_manager,
|
||||
|
@ -30,7 +30,8 @@ input_manager_process_mouse_motion(struct input_manager *input_manager,
|
|||
|
||||
void
|
||||
input_manager_process_mouse_button(struct input_manager *input_manager,
|
||||
const SDL_MouseButtonEvent *event);
|
||||
const SDL_MouseButtonEvent *event,
|
||||
bool control);
|
||||
|
||||
void
|
||||
input_manager_process_mouse_wheel(struct input_manager *input_manager,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue