Code Update: DInput 8
by James Lupiani · in Torque Game Engine · 10/17/2001 (5:07 pm) · 7 replies
I've updated the DInputManager and DInputDevice to use DirectInput 8. It doesn't include any backward compatibility that the previous version had, but at least it works (on my system, anyway). The next hurdle will be to figure out why it doesn't generate events for my joystick.
You can download the updated files from my site. Unzip them in your engine/platformWin32 directory. You'll also have to add dinput8.lib from the DirectX SDK to your library modules.
You can download the updated files from my site. Unzip them in your engine/platformWin32 directory. You'll also have to add dinput8.lib from the DirectX SDK to your library modules.
About the author
Programmer for Sickhead Games
#2
So I went through and removed the run-time linking to the old library (dinput.lib) and switched it to a straight DI8 (dinput8.lib).
10/17/2001 (8:12 pm)
Changes had been made to use DX8 constants, but the DInput code never worked for me in the first place. It was querying the DX5 (or if it didn't exist, DX3) interface, but for one reason or another it wouldn't enumerate anything.So I went through and removed the run-time linking to the old library (dinput.lib) and switched it to a straight DI8 (dinput8.lib).
#3
10/17/2001 (9:00 pm)
Ok, thanks for the info, I'll talk it over with Rick when he get's back (he does the input stuff).
#4
10/18/2001 (11:16 pm)
I fixed the problem with polled devices (joystick, for instance) and overwrote my previous zip. Seems to be working great now! =)
#5
im just wondering ..
here with the version im using
1_1_1 ..
it still is defaulting to dated dx and not dx8 for input
as soon as I used this upgrade the joystick worked fine
.. shouldnt this logic be allied to the latest code?
02/19/2002 (7:39 pm)
umm ..im just wondering ..
here with the version im using
1_1_1 ..
it still is defaulting to dated dx and not dx8 for input
as soon as I used this upgrade the joystick worked fine
.. shouldnt this logic be allied to the latest code?
#6
02/20/2002 (7:13 pm)
If not I should probably put it up as a code snipit. I'll put it on my ever-growing todo list.
#7
Thanks man.
looks like I am finally gonna branch off the head build...
03/13/2002 (9:32 am)
Sweet.Thanks man.
looks like I am finally gonna branch off the head build...
Torque Owner Tim Gift