Alt-tab mouse glitch

Issue #67 resolved
Former user created an issue

Initial conditions: Mouse control is DISABLED in options. Operating with a joystick. There is an in-game mouse cursor rendered on screen, but the mouse does not affect flight control.

The bug: Whenever you alt-tab out of XWVM and back in, it toggles the state of mouse control back and forth from "Disabled" to "X-Wing Style".

While mouse control is enabled, the in-game mouse cursor has disappeared. When it's accepting mouse movement as flight control, it's possible to turn at hyperspace speed. So fast the stars blur. The joystick still works, but turns the craft at normal speed.

You can keep repeating the bug by alt-tabbing. The bug affects both windowed and fullscreen mode.

Comments (5)

  1. David Esparza Guerrero
    • changed status to open

    It seems Alt+Tab is counting as Tab also for enabling the mouse control.

    "Hyperspace speed turning" might be just an unintended visual effect. The mouse turning rate is unclamped and that may make the ship turn much faster with the mouse than it could ever turn with the joystick.

    The starfield is programmed to "blur" the stars when turning, so that they stretch from current position to previous frame's position. This, together with the unclamped mouse turning rate might be mistaked with "hyperspace turning".

    We need to make "Alt+Tab" not count as "Tab". And probably clamp the mouse control turning rate.

  2. David Esparza Guerrero

    The "hyperspace turning" mouse related part of this issue has been fixed as part for the fix for issue #58.

  3. David Esparza Guerrero

    Solved by creating a hidden ALT-TAB mapping that does nothing. This should "hide" the single TAB mapping that toggles mouse control.

  4. Log in to comment