-
Notifications
You must be signed in to change notification settings - Fork 186
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 implement force feedback? #99
Comments
Hi Was asked a couple of years ago Out of my area of expertise If someone wants to take a crack at it and create a pull request, it would be greatly appreciated. |
Sorry for my poor english. with ffb do you mean a simple vibrator motor?, i found an app for android that test the gamepad and the vibration, can you catch this command and implement it to the library? or this is the complicated part? |
Sorry. |
Force feedback or haptic is possible, but not yet quite standard, at least not in my very basic research. There are a few options:
3 and 4 are something in my spare time I am trying to understand and added, but it's slow going and just a little over my current skill level. Hope this might help somebody else just start their progress. |
Ok!, I'm gonna try to work on it |
That would be great. |
Let me jump into this issue because I'm also interested in it.
Which app did you try? I also want to try the app. |
Seems some of the info needed is here |
And here's an Arduino Leonado joystick library with force feedback |
I have been reading through the ArduinoJoystickWithFFBLibrary repo and came across YukMingLaw/ArduinoJoystickWithFFBLibrary#30 (comment) where extending the HID PID seems to get FFB working in Linux, so I was thinking of extending ESP32-BLE-Gamepad PID to include the changes for test - https://github.com/YukMingLaw/ArduinoJoystickWithFFBLibrary/blob/master/src/FFBDescriptor.h but after about a 1/3 of the way through, worried about any typos or other problems, hoping there might be a quicker or even better way to do this, for just a test? @lemmingDev you have an idea? Need to take into account, Report IDs (not got to the point to test yet)- Was thinking about just making a Report IDs and offset from the init base. My fork and branch in it's current state - https://github.com/LeeNX/ESP32-BLE-Gamepad/commits/leet-ffb-pid Also thinking, if we going to use this code, we should possible ask or inform https://github.com/YukMingLaw that we doing this? Just good citizenship ... I will reach out, if nobody else beats me too it. |
Hi @LeeNX Have you had any luck getting the FFB to work? I was looking at using ESP32-S2 and convert the ArduinoJoystickWithFFBLibrary to work with the esp32, but if this works that's even better. Thanks |
@MatthewReed303 still in progress, have not made much headway since my last post. Not much feedback either, so I am not sure if anybody else would find this useful. I am still keen and interested and will come back to this. Just need to find the time and motivation. Have some free time coming up in two weeks, so I think I will be able to get to at least testing PID with OSX and Linux (Raspberry Pi) with SDL 2/3. Been hacking at a simple console testing program, to test some of my ideas. Was very interested in seeing very much different feature reporting back on Linux vs OSX. On Linux, if I set SDL hint that my BLE devices is PS4 controller, not much changes, but on OSX, when hinted as PS4 controller, the serial number from BLE is reported back differently. SDL feature (bug) that I was not expecting. I don't even remember why I did think of even trying this. I hope there is more interest, which would be motivating for me. |
Does this library have a callback for messages received from the PC? I'm trying to do some latency measurements and my idea was to send FFB messages to the controller and respond back with a button press thus having the full round-trip latency. |
I'm using the [Fino](https://github.com/jmriego/Fino] library which based on the YukMingLaw to create an Arduino FFB Yoke for FlightSim. Is there any progress of implementation of FFB? |
Xinput fork of library here that does rumble No progress on force feedback |
Is there a possibility to get ffb?
The text was updated successfully, but these errors were encountered: