joycontrol
joycontrol copied to clipboard
WIP: rumble - feedback please
Feedback would be good, WIP for #50 In the current WIP implementation:
- prints a summarized version of the rumble data to the console
- provides a 'signal' functionality where a method will be called when:
-
raw_rumble
: rumble data arrives, calls the callback with 2 tuples: left rumble data, right rumble data (not sure how this works for joycons) tuple contains of 4 numbers: high frequency, high amplitude, low frequency, low amplitude what that means, see https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/blob/master/rumble_data_table.md I do calculate the 0-~200 values into a 0-1 roughly, this is not implemented as in the link -
rumble
: just calls a function with 2 parameters after a rumble occurs: duration, max amplitude
-
Nice, I'll take a look as soon as I have the time.