Add --prefer-text-events option

Expose an option to configure how key/text events are forwarded to the
Android device.

Fixes <https://github.com/Genymobile/scrcpy/issues/650>
This commit is contained in:
Romain Vimont
2019-11-06 21:48:36 +01:00
parent 2d90e1befd
commit 44791d6b40
8 changed files with 101 additions and 9 deletions

View File

@@ -10,10 +10,17 @@
#include "video_buffer.h"
#include "screen.h"
enum text_events_pref {
PREFER_TEXT_EVENTS_ALWAYS,
PREFER_TEXT_EVENTS_NON_ALPHA,
PREFER_TEXT_EVENTS_NEVER,
};
struct input_manager {
struct controller *controller;
struct video_buffer *video_buffer;
struct screen *screen;
enum text_events_pref text_events_pref;
};
void