Game Development Community

How to Disable F11 and F10 keys?

by Jorge Luis Gandulfo · in Torque Game Engine · 09/30/2003 (11:43 pm) · 4 replies

Yeah im trying to break appart some client demo software.

How can i get rid of the F11 an F10 keys setting, and maybe use them for something better instead?

#1
10/01/2003 (12:11 am)
GlobalActionMap.bind(keyboard, "f11", toggleEditor);

its in common/editor/editor.cs at the bottome. Comment that out to disable the editor. I dont know about F10.

To use it for something else, create a function.. called say, foo

then put this in a script somewhere.

GlobalActionMap.bind(keyboard, "f11", foo);
#2
10/01/2003 (12:20 am)
Well what i could observe is even after deleting the whole Editor directory, pressing the F11 key will give me an empty screen only with some background.

I searched arround and there is no link to F11 anywhere.

So i figured F11 is call the editor from somewhere in the engine, in fact its, but still i couldn't figured out how to disable that call.

Thanx for your help bro!
#3
10/01/2003 (6:25 am)
Grep the entire demo directory. It's probably got some dangling references somewhere to the editor and f10/f11
#4
10/01/2003 (6:44 am)
I just tried commenting out GlobalActionMap.bind(keyboard, "f11", toggleEditor);
and it works for me. But I have a rather old Head version, so it may have changed with all these new things being added recently.