Binding middle mouse button in 1.5.1
by Playware · in Torque Game Builder · 11/29/2007 (6:27 pm) · 7 replies
Hi,
I am trying to use the middle mouse button in the game. In the old version (1.5beta2) I was able to bind the middle mouse button. But I am unable to do so in the the lates version of TGB. What am I missing here. I am not able to find any resource about this.. Please Help me out here
Thanks,
Sharath
I am trying to use the middle mouse button in the game. In the old version (1.5beta2) I was able to bind the middle mouse button. But I am unable to do so in the the lates version of TGB. What am I missing here. I am not able to find any resource about this.. Please Help me out here
Thanks,
Sharath
About the author
#2
12/10/2007 (6:51 am)
I believe you can set the button 0, 1, 2, 3+ etc just like the joystick actionmaps. I just looked at the 1.5 reference for Input interaction (second choice after searching for mouse). That reference might get you going in the right direction.
#3
12/10/2007 (6:35 pm)
Thanks David, I was using the button2 for binding the middle mouse. It worked fine with the 1.5beta2, but not with the 1.5.1 build. Will try out the other buttons..
#4
I've been trying to bind right mouse button1 and i cant seem to get it to work.
I've tried:
moveMap.bindCmd(mouse,"button1","StressTestZoom();","");
moveMap.bindCmd(mouse0,"button1","StressTestZoom();","");
moveMap.bind(mouse,button1, StressTestZoom);
moveMap.bind(mouse0,button1, StressTestZoom);
however if I bind it to something like zAxis (mousewheel) it works. just not button0,1,2....
Any suggestions?
Currently im using scenewindow2d :: onRightMouseUp.. which works.. but I'd prefer to use a binding.
12/12/2007 (3:09 pm)
Hmm been having similar problems.I've been trying to bind right mouse button1 and i cant seem to get it to work.
I've tried:
moveMap.bindCmd(mouse,"button1","StressTestZoom();","");
moveMap.bindCmd(mouse0,"button1","StressTestZoom();","");
moveMap.bind(mouse,button1, StressTestZoom);
moveMap.bind(mouse0,button1, StressTestZoom);
however if I bind it to something like zAxis (mousewheel) it works. just not button0,1,2....
Any suggestions?
Currently im using scenewindow2d :: onRightMouseUp.. which works.. but I'd prefer to use a binding.
#5
12/13/2007 (12:36 am)
Mapping the mouse to moveMap doesn't work. But it works with globalactionmap, this is not very logical but, well, it works (maybe a binding already on GlobalActionMap).
#6
GlobalActionMap.bindCmd(mouse, "button2", "jump();", "");
Which worked in 1.3, doesn't anymore in 1.6.
I need to use the middle button, and this was the only way. What can I do?
01/27/2008 (7:19 am)
Let me correct myself, I was wrong. It works on 1.3 but binding the mouse doesn't work anymore on TGB1.6.GlobalActionMap.bindCmd(mouse, "button2", "jump();", "");
Which worked in 1.3, doesn't anymore in 1.6.
I need to use the middle button, and this was the only way. What can I do?
#7
01/31/2013 (6:00 pm)
The problem still exists in TGB 1.7.6, any solutions yet?
Torque Owner Playware
Playware Studios
Well, Its been some time and havent got a reply for this thread.. I think this problem is tackled elsewhere on the forum, but am unable to find the solution.. Can anybody help me out by directing me to the right direction!
Cheers