Game Development Community

How do you bind Mouse Keys via the .bind command?

by Leroy Frederick · in Torque Game Builder · 08/21/2006 (11:54 am) · 2 replies

Hi, me again all :),

I already got Keyboard and Joystick input binded nicely, now how I get the same results with the mouse?

new ActionMap(testActionMap);
	testActionMap.bind(mouse0, "button0", mouseLeftClick);

	function mouseLeftClick(%val)
	{
		echo("Click input = " @ %val);
	}

This is taken (and slighty adjusted) from the 'input interaction pdf', but even in it's original form, it doesn't seem to work? Is this documenation outdated (v1.1.1) or have i missed something?

Thanks in advance! :>

#1
08/28/2006 (3:20 pm)
See this thread.
#2
08/29/2006 (3:31 am)
Thanks J. Alan, i'll take a butchers (look) at it later :)