Getting the key that is pressed
by Dave D · in Torque Game Builder · 06/23/2006 (10:41 am) · 0 replies
I posted this in the wrong forum, hopefully I can get an answer in here.
I am writing a word puzzle game. I am trying to get the key that is pressed. I don't want to have to bind all the keys on a keyboard, I think this is a little clumsy. I do have a plan for modifying the source to add this functionality, but I don't want to reinvent the wheel.
The question: Does TGB already provide such a way to get what key is pressed? Or do I have to bind all the keys that I need in game?
Thanks
I am writing a word puzzle game. I am trying to get the key that is pressed. I don't want to have to bind all the keys on a keyboard, I think this is a little clumsy. I do have a plan for modifying the source to add this functionality, but I don't want to reinvent the wheel.
The question: Does TGB already provide such a way to get what key is pressed? Or do I have to bind all the keys that I need in game?
Thanks