Keyboard configuration dialog
by Koen Van Baelen · in Torque Game Builder · 05/12/2008 (1:13 pm) · 2 replies
Hi,
I want to create a dialog box for configuring keyboard input. I first tried to make it with drop down lists that display all keys, but that's not really the most elegant solution. What I want is a text edit control that converts a key press to the correct keycode for use with an actionmap. Example: I want to change the "Fire" key, wich is currently set to space. When I go to the text edit box for the fire key and press the left control key, "lcontrol" should appear in the box. How can I accomplish this?
I want to create a dialog box for configuring keyboard input. I first tried to make it with drop down lists that display all keys, but that's not really the most elegant solution. What I want is a text edit control that converts a key press to the correct keycode for use with an actionmap. Example: I want to change the "Fire" key, wich is currently set to space. When I go to the text edit box for the fire key and press the left control key, "lcontrol" should appear in the box. How can I accomplish this?
#2
05/13/2008 (11:28 am)
Ah, perfect! I've taken a look at the code and it seems exactly what I'm looking for. Too bad there's still so many undocumented functions and classes. It will probably take some trial and error, but it shouldn't be too difficult. Thanks!
Associate James Ford
Sickhead Games