Page 1 of 1

minor mouse control bug

Posted: Mon May 08, 2006 11:12 pm
by aerrea
Hello. First I just wanna say this game is amazing and i have been playing it obsessively for the past few months, ever since I stumbled upon it :D

I use the mouse, rather than the keyboard for flight controls.. One issue I've been having has been when switching from the flight views to GUI views, whenever I switch back to flight, the moment I move the mouse again the direction of my ship changes in usually some random wild direction.

replacing setMouseInDeltaMode: in src/SDL/MyOpenGLView.m
with the following seems to fix it:

- (void) setMouseInDeltaMode: (BOOL) inDelta
{
if (inDelta && !mouseInDeltaMode)
{
SDL_GetRelativeMouseState(NULL, NULL);
[self setVirtualJoystick: 0.0 : 0.0];
}
mouseInDeltaMode=inDelta;
}