minor mouse control bug

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
aerrea
Harmless
Harmless
Posts: 1
Joined: Mon May 08, 2006 10:53 pm

minor mouse control bug

Post 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;
}
Post Reply