▍1. Force-Feedback-with-DirectInput
This is a code stub from a game I am working on. You will need to have DirectX 7.0 installed or higher. I will give you two sample effects when using a force-feedback joystick. The first one is an Explosion force feedback effect, the other one is a Gunfire effect. You will have to enum your own Joystick object.