scrcpy/app/tests
Romain Vimont 7c8bdccbdc Extend value range for SDK mouse scrolling
SDL precise scrolling can sometimes produce values greater than 1 or
less than -1.

On the wire, the value is encoded as a 16-bit fixed-point number.

Previously, the range was interpreted as [-1, 1], using 1 bit for the
integral part (the sign) and 15 bits for the fractional part.

To support larger values, interpret the range as [-16, 16] instead,
using 5 bits for the integral part and 11 bits for the fractional part
(which is more than enough).

PR #6172 <https://github.com/Genymobile/scrcpy/pull/6172>
2025-06-20 19:54:16 +02:00
..
test_adb_parser.c Fix "ip route" parsing 2023-04-02 19:30:23 +02:00
test_audiobuf.c Handle audio stream discontinuities 2025-03-29 14:54:35 +01:00
test_binary.c Add util functions to write in little-endian 2024-09-15 11:21:56 +02:00
test_cli.c Add --capture-orientation 2024-11-19 21:31:04 +01:00
test_control_msg_serialize.c Extend value range for SDK mouse scrolling 2025-06-20 19:54:16 +02:00
test_device_msg_deserialize.c Handle UHID output 2024-03-01 00:52:00 +01:00
test_orientation.c Add --display-orientation 2023-11-23 23:27:28 +01:00
test_str.c Use explicit file protocol for AVIO 2024-11-18 18:48:26 +01:00
test_strbuf.c Add missing includes 2021-11-24 21:44:29 +01:00
test_vecdeque.c Add missing voids for empty parameter list 2023-10-23 21:50:40 +02:00
test_vector.c Add missing voids for empty parameter list 2023-10-23 21:50:40 +02:00