Game Development Community

keyboard0 input device unacquired. - bug

by Gary Fieldman · in Torque Game Engine · 12/28/2002 (6:50 pm) · 8 replies

I ma having some really interesting issues. I just downloaded the current HEAD version for Torque and I loaded our game with the -mod racing and -mod deathcar tags. I am able to get it working fine in the demo, but when I run our game its a crap shoot for whether or not the keyboard will lock. The only message I get is:

keyboard0 input device unacquired.

in the console. Kind of annoying but I noticed that it does the same thing in the demo version but it doesnt crash. I realize our game is the issue, but not certain where to begin. Any help would be appreciated.

#1
12/29/2002 (1:36 pm)
Directinput is probably the culprit. There is a pref to enable/disable it, I believe it is called $enableDirectInput. Set that to 0/false and you shouldn't have the problem anymore. However, it shouldn't lock your keyboard like that in the first place.
#2
12/29/2002 (3:11 pm)
Ok, so if I set it 0, will it allow for keyboard entry at all?
#3
12/29/2002 (4:55 pm)
Yes. When direct input is disabled it falls back to standard windows keyboard/mouse events. You won't be able to use joysticks or other special devices, though.
#4
12/29/2002 (5:21 pm)
Ok, I'll test that in a few, I have a couple of other things to build first. On another note, could the above be causing a problem with my keyboard not being able to steer the vehicle at all?
#5
12/29/2002 (5:30 pm)
I think the keyboard would either be fully active or fully inactive. So if some keys work and some don't, its probably related to something in your game code and not the platform input code.
#6
12/29/2002 (5:32 pm)
The default.bind is kept stock for movement. That is why I am a little confused. The only other thing is that it doesnt work either on stock test palteform for using "a" and "d" to steer the car left and right. Do I have to set something up to get the vehicle to do that?
#7
12/29/2002 (6:41 pm)
Aren't a and d mapped to strafeLeft and strafeRight accordingly by default? Could it be as simple as having the wrong key bindings?
#8
12/30/2002 (6:14 pm)
I'll check on this tonight, thanks all for your posts!