Game Development Community

Key binding troubles on OSX

by Jason McIntosh · in Torque Game Builder · 10/12/2005 (11:02 am) · 5 replies

I am getting an error saying "Couldn't create description for binding: X" (where X is the key I tried to bind to a command). What does this mean and why does it happen? It is happening on OSX.

#1
10/12/2005 (11:12 am)
Can you post your bind statement?

Did you delete the config.cs and config.cs.dso files ?

Dont know about T2D, but you must do that for TGE.
#2
10/12/2005 (11:17 am)
It turns out that some key codes are not defined under Mac OSX. For instance, binding the character "[" to a command will work on PC, but not on Mac (maybe "lbracket" works, I didn't try). I had also bound "-" but had to change it to the word "minus" before it would work. Same with "/" and "slash".

So I guess the key code translations must be different on OSX? Certainly something for the Torque devs to consider looking into.

(Thanks for the reply, Chris.) :)
#3
10/12/2005 (11:44 am)
This is a little more serious than I had first suspected.

On my Mac, trying to enter the editors does not work. F10, F11, and F12 have native functions on OSX, and those seem to override Torque's bindings (in windowed mode, at least; I'll try fullscreen). I changed the bindings to use the tile editor and particle editor, but I fear I need to dig into the C++ code to change the GUI editor binding (why oh why?). :)

Also, the zoom function in the tile editor does not work on OSX because of the binding issue (it uses bracket keys).

Edit: Fullscreen mode does work ok. I am able to access the GUI editor with f10. The keybinding issues remain, though.
#4
10/12/2005 (8:49 pm)
Quote:
To switch between fullscreen and windowed:
hit Cmd-Return.

To open the editors in windowed mode, without disabling Expose :
hit Cmd-F11 or Cmd-F10

Share and Enjoy


From Paul Scott on the TGE-Mac forums.
#5
10/13/2005 (9:19 am)
Thanks for that, Stephen! Good to know.