How to get force feedback data from games

Hello guys,
I'm new to arduino coding and I'm trying to create a force feedback steering wheel with arduino leonardo. For car controlling parts I used the library named "Joystick.h". I also want a force feedback option for the steering wheel.

The problem is that I can't find any tutorial or code how to get the force feedback data from racing games. I know that there is an option where I should upload a hex code to the board and wire everything to the right place and it will work, but I want to do it at another way, I want to write at least a bit of my code, not copying all of the stuff.

So if you can show me some code how to get the FFB data from games I would be very grateful.

Hi I was also looking for this and I found this link

Hope it helps

That is a link to a tutorial i wrote 4 years ago on how to implement force feedback capable devices.

You need to adapt it to your own hardware and microcontroller tough.