Commit Graph

11 Commits

Author SHA1 Message Date
Louis Gombert
19762b9282 Merge pull request #695 from tophyr/pr/fix-mouselook
Fix mouselook
2025-05-08 20:12:29 +02:00
Chris Sarbora
5b18e22e18 Fix mouselook
Likely with the change to SDL's 'captured mouse' mode, mouse movements
during fullscreen became deltas *from the last movement*, not from
the last sampled position or frame. In order to correctly measure the
mouse movement, the deltas must be summed up and then reset when 'read'
at input-processing time.

Moving to summing the deltas threw many other mouse-related calibration
factors out of whack, so these factors are re-determined empirically
across a range of mice, from 400dpi 125hz to 30,000dpi 8khz. Reasonable
defaults are chosen targeting an 'average' mouse of 1000dpi, and the
mouse sensitivity precision is increased to allow finer user tuning.
2025-04-12 01:57:43 -05:00
Jan Engelhardt
401901c4f7 Replace sizeof/sizeof by std::size 2025-03-07 19:52:32 +01:00
Louis Gombert
284ed271a8 SDL Event filters: always return bool 2025-02-17 22:45:04 +01:00
Louis Gombert
3a1878c0f7 SDL3: run rename_headers.py script from migration guide 2025-02-17 22:36:30 +01:00
Louis Gombert
780b88f673 SDL3: run rename_symbols.py script from migration guide 2025-02-17 22:36:22 +01:00
Sebastian Holtermann
8ffbc6c5ea Fix array size computation
This fixes an array size computation that assumed that the array elements
are char * when in fact they are char arrays.
2024-12-02 18:01:00 +01:00
Azamat H. Hackimov
39e971504e DDIO: implement mouse grab state functions
Hide global variable ddio_mouseGrabbed.
2024-08-21 12:29:28 +03:00
GravisZro
f7ae658fe2 Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
GravisZro
9cf9781369 Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
Azamat H. Hackimov
a0929aefe2 Rename ddio_common to ddio 2024-05-24 22:18:14 +03:00