Using Force Feedback

Using force feedback in your application adds to the immersion a player experiences while using your application. Driving a car around at over 100 miles per hour, suddenly ramming into a tree, and having the joystick you're using jerk out of your hand from the force is an experience you just can't match. So, how can you add this to your applications?

One of the first things that needs mentioning is that force feedback effects will require you to have exclusive access to the device. Luckily, these joysticks can be acquired with exclusive mode and in the background. You will use a similar method to create the device for this example as you did for the joystick. Replace the existing InitializeInput method with the one found ...

Get Managed DirectX® 9 Kick Start: Graphics and Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.