8 Commits
Author SHA1 Message Date
JaxonWasTakenandGitHub 57c5af0f30 RMG-Input: refactor deadzone and sensitivity (#143)
* rework application of deadzone

 * Move application of deadzone outside octagon simulation.
 * Scale result after applying deadzone back to the range ±[0, 1].
 * Remove deadzone from octagon simulation, as a real N64 controller can
   output output values in the full range.

* move application of sensitivity

The sensitivity is only for the real controller and doesn't really have
anything to do with simulating an octagon, so we move its application to
the processing of input from the real controller.

* use std::hypot instead of manual calculation
2023-07-17 14:12:44 +02:00
JaxonWasTakenandGitHub e3787b5ccf RMG-Input: implement "Analog Stick Sensitivity" 2023-03-31 19:47:31 +02:00
Rosalie Wanders d580d2be9a RMG-Input: add Z-Trigger to the svg & hook it up to ControllerImageWidget 2022-12-13 22:53:03 +01:00
Rosalie Wanders a378652976 RMG-Input: also remove range from ControllerImageWidget 2022-11-23 16:41:56 +01:00
Rosalie Wanders e5aa57f0d0 RMG-Input: move octagonal functions to main.cpp 2022-11-23 16:19:45 +01:00
JaxonWasTakenandRosalie e1180bc574 RMG-Input: implement octagonal input range
The implementation takes configured deadzone and range into account,
with 9% deadzone equating to the real N64 deadzone.
2022-11-23 10:29:34 +01:00
Rosalie Wanders fd84a7021e RMG-Input: allow resizing 2022-11-14 12:40:01 +01:00
Rosalie Wanders 1eac1b2b3f Introduce RMG-Input (for linux only) 2022-09-10 18:42:56 +02:00