Do not pass scrcpy_options to keyboard inject

The components should be configurable independently of the global
scrcpy_options instance: their configuration could be provided
separately, like it is the case for example for some screen parameters.

For consistency, keyboard injection should not depend on scrcpy_options.
This commit is contained in:
Romain Vimont
2022-01-14 20:55:44 +01:00
parent 43aff4af73
commit 75655194fb
3 changed files with 8 additions and 5 deletions

View File

@@ -25,6 +25,7 @@ struct sc_keyboard_inject {
void
sc_keyboard_inject_init(struct sc_keyboard_inject *ki,
struct controller *controller,
const struct scrcpy_options *options);
enum sc_key_inject_mode key_inject_mode,
bool forward_key_repeat);
#endif