forked from atar-axis/xpadneo
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hid-xpadneo: Scale rumble magnitudes correctly
According to `hid-microsoft.c`, the device supports magnitudes in the range of 0..100. This commit scales the magnitudes correctly from 0..65535 to 0..100 and also uses a finer scale for the pre-calculated cosine table to have more than 4 steps on each trigger. Additionally, it considerably reduces the strength of the connection notification rumble. The controller no longer tends to hop down the table. I don't have any specs of this but sending too high values may affect the stability of the firmware thus this may reduce connection losses observed in some issue reports. This also removes the over-use of blank lines: It confuses git during rebase as it allows splitting logical self-contained hunks into seemingly unrelated blocks on too many opportunities. Closes: atar-axis#154 Affects: atar-axis#149 Maybe-related: atar-axis#171 Maybe-related: atar-axis#122 Signed-off-by: Kai Krakow <[email protected]>
- Loading branch information
Showing
1 changed file
with
21 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters