Game Development Community

TGEA 1.7.0 Beta 2 Bug - T3D Demo - ALT + SPACE

by Stephan Goebels · in Torque Game Engine Advanced · 03/21/2008 (2:25 am) · 5 replies

Well start the T3D Demo, press the ALT + SPACE keys then press the RETURN key, the player start to jump, press now the SPACE key, player stop jumping.

Windows XP. Latest DirectX (WEB March 2008) and Drivers 69.21: Nvidia 7800GS.

Tested version TGEA 1.7.0 Beta 1

#1
03/21/2008 (7:38 pm)
This is a long standing Torque bug that we won't be fixing in this release.

Essentially what is happenign here is that Torque is getting the message that the spacebar has been pressed so it starts the jump animation. Then the window essentially loses focus (the alt bit) causing the input code and the Player code to never receive the message that the space bar was let up so it keeps playing the jump animation. When you press the spacebar a second time it sends a keydown message which the Player code ignores since it is already jumping and then a keyup message that finally stops the jumping.

All in all it is kind of a ugly bug to fix since the Torque input system relies on messages from the operating system and doesn't continuously poll the state of the keyboard (which eats resources that could be used elsewhere).

Perhaps at some point we can look at combining a message based input system with a lower cost polling system (poll less frequently than would be needed for normal game input). We will not be able to get to it for this release.
#2
03/22/2008 (1:25 pm)
Object Oriented Input System (License : zlib/libpng License)

Object Oriented Input System (OIS) is meant to be a cross platform, simple solution for using all kinds of Input Devices (KeyBoards, Mice, Joysticks, etc) and feedback devices (e.g. forcefeedback). Written in C++ using Object Oriented Design patterns

Since Windows XP DirectInput use a wrapper for RawInput, so if you use RawInput it will be faster.
#3
03/22/2008 (1:35 pm)
What does that key combination supposed to do, I have never heard of that in a windows systems.
#4
03/22/2008 (1:43 pm)
Key combination ALT + SPACE is for windows settings like max, min or move the windows.
#5
03/30/2008 (5:11 am)
I know that this will be fixed in the future!

Windows XP. Latest DirectX (WEB March 2008) and Drivers 69.21: Nvidia 7800GS.

Tested version TGEA 1.7.0 Beta 2