Caps Lock
by Howard Dortch · in Torque Game Engine · 11/11/2005 (10:20 am) · 3 replies
There seems to be a bit of a dis connect on the caps lock key and the chat hud.
The system keyboard caps lock works independant of the chat. If I start my program with the caps lock key on and enter chat all the text is in CAPS. I hit the caps lock key and the light turns out ( I assume the state changed) and all the text is still in caps and stays that way until I quit the game, unlock the key then re enter the game. I have been in the engine code trying to find where this all happens.
In processKeyMessage the caps lock is tested and set in the keyboardState[] array but that is not tested during the key events for the chat. Am I missing something here? I searched for this in the forums but there is little information.
The system keyboard caps lock works independant of the chat. If I start my program with the caps lock key on and enter chat all the text is in CAPS. I hit the caps lock key and the light turns out ( I assume the state changed) and all the text is still in caps and stays that way until I quit the game, unlock the key then re enter the game. I have been in the engine code trying to find where this all happens.
In processKeyMessage the caps lock is tested and set in the keyboardState[] array but that is not tested during the key events for the chat. Am I missing something here? I searched for this in the forums but there is little information.
#2
11/11/2005 (12:53 pm)
I see what you mean. However people are not used to doing things that way, my testers complain about it all the time. Caps should be caps. I guess the only thing to do is get the capslock state every time the chat window opens but that seems like a kludge. I stepped throught the code and the proper state of the caps lock is stored in the keyboardState[] array at index 14 hex. /ponder
#3
11/11/2005 (7:10 pm)
Which version of Torque does this happen in?
Torque Owner Ishbuu
[Ishbuu]