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: Use work queue for rumble effects
This makes the rumble playback asynchronous from the playback callback. This reworks much of the code-design and replaces the previous patch for sending rumble reports only when there's a rumble command to do. With this change, we now get the following kernel message immediately on disconnects: xpadneo 0005:045E:02FD.0054: failed to send FF report It also renames the motor usage from left and right to weak and strong because no one knows if the strong motor is left or right, it also prevents confusion with the trigger motors which are clearly left or right. The general design is a valuable effort on improving code quality, as it simplifies some complex functions. Maybe-related: atar-axis#171 Maybe-related: atar-axis#122 Maybe-affects: atar-axis#180 Signed-off-by: Kai Krakow <[email protected]>
- Loading branch information
Showing
1 changed file
with
92 additions
and
92 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