Console displays only very briefly when I hit tilde.
by Nick Sandow · in Torque Game Engine · 12/07/2006 (6:28 am) · 6 replies
Hi,
In 1.5, I've noticed that sometimes when I hit the '~' key to bring the console up, the console appears, but only for an instant, then goes away.
It seems pretty random whether or not this happens. Sometimes I sit there hitting the key 5 or more times before the silly console will stay put.
I also have a hunch that this problem only appears once you go into a mission and quit out of it again, but I may be wrong there.
Anyhow, I am surprised I can't find a report of this elsewhere on the forums, but I guess everyone is learning, monkey-like, to live with it or it doesn't apply to them.
Thanks.
In 1.5, I've noticed that sometimes when I hit the '~' key to bring the console up, the console appears, but only for an instant, then goes away.
It seems pretty random whether or not this happens. Sometimes I sit there hitting the key 5 or more times before the silly console will stay put.
I also have a hunch that this problem only appears once you go into a mission and quit out of it again, but I may be wrong there.
Anyhow, I am surprised I can't find a report of this elsewhere on the forums, but I guess everyone is learning, monkey-like, to live with it or it doesn't apply to them.
Thanks.
#2
It happens often enough to slowly drive me crazy, unfortunately. ;) The fact it doesn't happen as often on your rig, and the fact that's it's random at all suggests some kind of timing/race condition in there or something.
Oh well. If anyone's debugged this I can offer my gratitude in return.
12/07/2006 (7:52 am)
Thanks for helping out with some testing.It happens often enough to slowly drive me crazy, unfortunately. ;) The fact it doesn't happen as often on your rig, and the fact that's it's random at all suggests some kind of timing/race condition in there or something.
Oh well. If anyone's debugged this I can offer my gratitude in return.
#3
12/07/2006 (7:55 am)
Do you have DirectInput enabled with a joystick/gamepad connected? The only time I've ever seen this behaviour occur is when the above conditions are present. Not entirely sure how to get rid of the issue, though, all I know is that the engine essentially starts reading each keypress as a stream of presses, instead of a continuous press, or something to that effect.
#4
Actually, I recalled from somethere there is a global script variable, $enableDirectInput. This seems to be used by the engine in winInput.cc.
And what's more, it's set in PlayGui::onWake(). I commented out the setting of that variable there and whaddya know? Problem solved! I can now whack the tilde key over and over and the console is again that reliable little dude I have grown to love.
I can't say for sure I didn't break anything else by disabling that code, but at least it's a workaround for now. The root problem seems to be something with DirectInput, as suggested.
Thankyou for your insight Mr Tan.
12/07/2006 (8:17 am)
I don't have a joystick or gamepad connected - just using good old keyboard and mouse.Actually, I recalled from somethere there is a global script variable, $enableDirectInput. This seems to be used by the engine in winInput.cc.
And what's more, it's set in PlayGui::onWake(). I commented out the setting of that variable there and whaddya know? Problem solved! I can now whack the tilde key over and over and the console is again that reliable little dude I have grown to love.
I can't say for sure I didn't break anything else by disabling that code, but at least it's a workaround for now. The root problem seems to be something with DirectInput, as suggested.
Thankyou for your insight Mr Tan.
#5
12/07/2006 (12:52 pm)
I don't think the problem is specific to 1.5. It happens to me with 1.3, although strangely I don't remember it happening until a couple of months ago.
#6
The problem pops up in 1.4.2 as well.
@Nicholas
Your workaround in playGui.cs seems to have done the trick. Thank you.
12/07/2006 (1:16 pm)
@AllThe problem pops up in 1.4.2 as well.
@Nicholas
Your workaround in playGui.cs seems to have done the trick. Thank you.
Torque 3D Owner Edward Smith