Mouse move
by Adternative · in Torque Game Engine · 10/22/2007 (1:59 am) · 2 replies
Hi people!!
I have a problem with camera mouse movement. It must be something stupid I'm not realizing, but I just can't find it...
My problem is that the camera doesn't move with the mouse. I have thoroughly debugged it and the problem is that it doesn't call the function bound in the movemap to mouse events, that is,
moveMap.bind( mouse, xaxis, yaw ); moveMap.bind( mouse, yaxis, pitch );
The movemap works for all the functions except these two.
But the surprising thing is that if I switch to editor mode it works! It seems that the editor is activating something that makes it works.
Why the engine refuses to send the xaxis & yaxis events to the movemap while not in editor mode??+
Any idea is very appreciated!!
Thank you!
I have a problem with camera mouse movement. It must be something stupid I'm not realizing, but I just can't find it...
My problem is that the camera doesn't move with the mouse. I have thoroughly debugged it and the problem is that it doesn't call the function bound in the movemap to mouse events, that is,
moveMap.bind( mouse, xaxis, yaw ); moveMap.bind( mouse, yaxis, pitch );
The movemap works for all the functions except these two.
But the surprising thing is that if I switch to editor mode it works! It seems that the editor is activating something that makes it works.
Why the engine refuses to send the xaxis & yaxis events to the movemap while not in editor mode??+
Any idea is very appreciated!!
Thank you!
About the author
#2
I think I have pinned down the problem...
winWindow.cpp, line 396
if(windowLocked && windowActive)
{
....
}
It seems that while in game mode, both "windowLocked" & "windowActive" are false. In editor mode, both of them are true.
How do I make them to be active?
10/22/2007 (2:33 am)
Hi all!I think I have pinned down the problem...
winWindow.cpp, line 396
if(windowLocked && windowActive)
{
....
}
It seems that while in game mode, both "windowLocked" & "windowActive" are false. In editor mode, both of them are true.
How do I make them to be active?
Torque Owner Adternative
I have debugged the C++ code and I have the next clue...
If I'm in editor mode, the code executes actionmap.cpp, line 1171. If I'm in game mode, it doesn't get executed...
It seems that the system is not generating the SI_MOVE event... why?