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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user