S

Adding a Joystick to DirectX

April 29th, 2009

Having acquired a joystick I was eager to try it out in my DirectX project. This is theoretically a very easy thing to do, but of course, it isn’t turning out that way. While the sample project and tutorial instructions are incredibly easy to follow, and the sample project compiles and runs perfectly well, starting to apply this code my own project is not straightforward.

Something which I am now starting to accept is pretty typical of Microsoft’s code is that they do something totally differently to the way that they themselves have said it should be done, and don’t bother explaining WHY.

Nevertheless I shall persevere with adding this to my project with the intention of linking camera control to the joystick, but the responsiveness of the motion will be dependant on the strength of biofeedback signal.

Update: I discovered I was trying to fix an issue that didn’t exist when all that was required was including the dinput8.lib file to the project…

If you enjoyed this journal entry you may also find the following entries interesting:

Add Comment Add a Comment

Latest Journal Posts

RSS Feed

Additional

Bad Behavior has blocked 107 access attempts in the last 7 days.