Mouse not working...
by Jacco Jansen · in Torque Game Engine · 07/11/2007 (9:33 am) · 2 replies
Funny thing is my mouse worked fine
Then I bound it to a new action map and when I use that action map, everything works fine except the mouse functions
My mouse is not bound to the global action map and only one action map has mouse bindings...
Could anyone please explain to me why this following code does not work, please?
I also tried
and even
Everything works except the mouse... Why?
My playGui no longer pushes or pops the actionmap...
actionmap is no longer created...
RPGActionMap is the first actionmap created and the only other actionmap in use is only called later and does not use the mouse. All buttons work as expected in both action maps when active but the mouse never works.
I tried adding an echo to the pitch and yaw functions and neither function is ever called at all.
I tried binding the pitch and yaw functions to keboard keys and then the functions work perfectly.
I delete those bindings and uncomment the mouse bindings and presto... the functions no longer work...
I tried this:
But when I deactive that binding and use the exact same binding method inside my actionmap, it fails to do anthing again... why?
Any help?
Then I bound it to a new action map and when I use that action map, everything works fine except the mouse functions
My mouse is not bound to the global action map and only one action map has mouse bindings...
Could anyone please explain to me why this following code does not work, please?
RPGActionMap.bind(mouse0, "xaxis", yaw); RPGActionMap.bind(mouse0, yaxis, pitch );
I also tried
RPGActionMap.bind(mouse, "xaxis", yaw); RPGActionMap.bind(mouse, yaxis, pitch );
and even
RPGActionMap.bind(mouse, "xaxis", "yaw"); RPGActionMap.bind(mouse, yaxis, "pitch");
Everything works except the mouse... Why?
My playGui no longer pushes or pops the actionmap...
actionmap is no longer created...
RPGActionMap is the first actionmap created and the only other actionmap in use is only called later and does not use the mouse. All buttons work as expected in both action maps when active but the mouse never works.
I tried adding an echo to the pitch and yaw functions and neither function is ever called at all.
I tried binding the pitch and yaw functions to keboard keys and then the functions work perfectly.
I delete those bindings and uncomment the mouse bindings and presto... the functions no longer work...
I tried this:
GlobalActionMap.bind(mouse0, "button0", mouseFire);And because the globalactionmap has a higher priority than the canvas, i was not even able to click the start button, but it did show my echo command inside the console. This means I do set it correctly...
But when I deactive that binding and use the exact same binding method inside my actionmap, it fails to do anthing again... why?
Any help?
#2
04/05/2009 (5:53 pm)
This is not much help but I have a similar problem but instead my local key bindings do not work but my global bindings do. No one has been able to help me on this.
Jacco Jansen
Anyways, after some more testing, I found that even when binding my echo command ridden functions to the global actionmap even then my mouse does not respond to anything other than the clicks.
This has led me to believe that the xaxis and yaxis is what is causing th eproblem. Am I spelling it wrong?
Is it defined somewhere in a file I no longer load?
What what what?
Arggg.... i have so few hair left to pull out!!!!