There was only two key injection modes: - the default one - the mode with --prefer-text enabled To prepare the addition of another mode (--raw-key-events), use an enum instead of a bool. PR #2831 <https://github.com/Genymobile/scrcpy/pull/2831>
This will allow to define symbols in options.c without all the dependencies of scrcpy.c.
This will allow to provide alternative key processors.