RC3: can't get mouse bind to work
by J. Alan Atherton · in Torque Game Builder · 06/14/2006 (11:32 pm) · 0 replies
I've tried a variety of methods to no avail. Something like
moveMap.bind(mouse0, "xaxis", xFunction);
never calls the xFunction.
It works fine for joysticks.
I have been able to do an echoInputState() and see that the mouse is enabled and active, and still xFunction is never called.
This may simply be my ignorance as to the nuances of mice in TGB, so if you know that this does in fact work, and know the voodoo chant to make it so, please pass it on.
On a side note, I have figured out a way to more or less mimic the functionality for the x/y axis binds using onMouseMove and setMousePosition. It's nothing special or amazing, but it is a workaround.
moveMap.bind(mouse0, "xaxis", xFunction);
never calls the xFunction.
It works fine for joysticks.
I have been able to do an echoInputState() and see that the mouse is enabled and active, and still xFunction is never called.
This may simply be my ignorance as to the nuances of mice in TGB, so if you know that this does in fact work, and know the voodoo chant to make it so, please pass it on.
On a side note, I have figured out a way to more or less mimic the functionality for the x/y axis binds using onMouseMove and setMousePosition. It's nothing special or amazing, but it is a workaround.