-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to action and control the rumble of the joycon? #16
Comments
Anyone? Pointing me to some documentation? Thanks in advance |
The "HD Rumble" feature is somewhat complicated. |
Thanks for the link. Do you know how to activate the rumble, is there a boolean flag or is it done via the encoded amplitude only ? |
We use this function to send the commands to the joycon. |
I'm interested in this as well. I have tried following your suggestions above with something like:
but I am not sure how to permute the argument data to get actual rumble activity. Am I on the right track? is it simply a matter of converting the math at https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/blob/master/rumble_data_table.md into a pythonic equivalent? would that be a helpful patch for this library, if I could get it to work? |
For the benefit of future viewers of this issue, I was able to get this working by pulling the values (look at simple_rumble) from this pull request: |
Again for future reference, here is how to control the rumble effect in the joycon
|
I'm also quiet interested by this however I still don't get how to handle the rumbling duration. I see in @ericries code a mention to
If I'm not mistaken I only count eight bytes in all the above examples, isn't there something missing ? PS: with random testing I found that sending |
I don't understand how the bytes relate to time. What I used as a workaround is simply to turn the vibration off using enable_vibration(False) after x amount of time. The basic rumble seems to last for 1500 milliseconds or so, which is longer than I need. So I just trigger it and then turn it off to create various kinds of pulsing effects. Surely there is a better way, but I haven't seen it in any of the libraries around |
I could not find documentation on how to make the joycon rumble, any help to do that would be great, thanks
The text was updated successfully, but these errors were encountered: