joycontrol icon indicating copy to clipboard operation
joycontrol copied to clipboard

WIP: rumble - feedback please

Open pvanderlinden opened this issue 4 years ago • 1 comments

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

pvanderlinden avatar Dec 13 '20 14:12 pvanderlinden

Nice, I'll take a look as soon as I have the time.

mart1nro avatar Dec 19 '20 20:12 mart1nro