Game Development Community

Keybind for print screen

by Sean Richards · in Torque Game Engine · 01/26/2007 (11:40 pm) · 2 replies

Is there a way to bind the "print screen" button to the game so it takes a screen shot on being pressed?

#1
01/30/2007 (12:23 pm)
In example\common\client\screenshot.cs, change:
GlobalActionMap.bind(keyboard, "ctrl p", doScreenShot);
TO
GlobalActionMap.bind(keyboard, "print", doScreenShot);

In engine\sim\actionMap.cpp, search for this:
CodeMapping gVirtualMap[] =

That's where every possible key stroke and input action is bound.
#2
01/30/2007 (4:52 pm)
Wow, Awesome..thanks.