Romain Vimont
bf5366f7ef
Reorder mouse processor ops
...
Group the mouse events callbacks before the touch event callback.
2021-12-30 11:52:44 +01:00
Romain Vimont
2dd3466210
Simplify mouse injection implementation
...
The static functions are now so simple they become unnecessary: the
control message may be initialized directly instead.
2021-12-30 11:52:44 +01:00
Romain Vimont
5768ecdb48
Make some event conversions infallible
...
When the implementation handles all possible input values, it may never
fail.
2021-12-30 11:52:38 +01:00
Romain Vimont
8fcc5e9e4e
Use scrcpy input events for mouse processors
...
Pass scrcpy input events instead of SDL input events to mouse
processors.
These events represent exactly what mouse processors need, abstracted
from any visual orientation and scaling applied on the SDL window.
This makes the mouse processors independent of the "screen" instance,
and the implementation source code independent of the SDL API.
2021-12-29 16:56:11 +01:00
Romain Vimont
0c0f62e4ab
Use static maps to convert input events
...
This improves readability (hopefully).
PR #2831 <https://github.com/Genymobile/scrcpy/pull/2831 >
2021-11-29 21:15:07 +01:00
Romain Vimont
4c4381de4c
Use sc_ prefix for size, position and point
2021-10-30 15:20:39 +02:00
Romain Vimont
f7d1efdf1d
Extract mouse processor trait
...
Mainly for consistency with the keyboard processor trait.
This could allow to provide alternative mouse processors.
2021-10-26 21:30:04 +02:00