scrcpy/app
Romain Vimont 6102a0b5bb Move input_manager into screen
The input_manager is strongly tied to the screen, it could not work
independently of the specific screen implementation.

To implement a user-friendly HID mouse behavior, some SDL events
will need to be handled both by the screen and by the input manager. For
example, a click must typically be handled by the input_manager so that
it is forwarded to the device, but in HID mouse mode, the first click
should be handled by the screen to capture the mouse (enable relative
mouse mode).

Make the input_manager a descendant of the screen, so that the screen
decides what to do on SDL events.

Concretely, replace this structure hierarchy:

     +- struct scrcpy
        +- struct input_manager
        +- struct screen

by this one:

     +- struct scrcpy
        +- struct screen
           +- struct input_manager
2022-01-04 17:41:35 +01:00
..
src Move input_manager into screen 2022-01-04 17:41:35 +01:00
tests Rename SC_MOD_* to SC_SHORTCUT_MOD_* 2022-01-01 23:28:45 +01:00
meson.build Improve crossbuild configuration 2021-12-10 19:50:58 +01:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy.1 Happy new year 2022! 2022-01-01 17:20:36 +01:00