#482 Gamepad stick input hides the mouse cursor and moves it to screen center even with GamePadCursorCentering 0

Status: Awaiting review · Area: UI & Interface · Settings & Menus

Using a one-stick gamepad with a mouse hides the cursor and snaps it to the screen center even with centering turned off, breaking a common setup.

Current behavior

Setup: Mouse and a gamepad device used together. The gamepad has a single stick and is used only for character movement. The mouse is used for the cursor, camera and clicking. GamePadEnable 1. The cursor is hidden as soon as `GamePadOverlapMouseMs` value is reached. It then immediately moves to the center of the screen. When the mouse takes control again, the cursor reappears at the center, not where it was left. Also tried, with no change: GamePadCursorCenteredEmulation 0 GamePadCursorAutoDisableSticks 0 SetGamePadFreeLook(false) (confirmed with IsGamePadFreelookEnabled() returning false) SetGamePadCursorControl(true) No addons involved. The behavior follows GamePadEnable alone and goes away with GamePadEnable 0. Related issue: When GamePadOverlapMouseMs is high (e.g. 120000), using the stick leaves the client in mouselook. IsMouselooking() returns true with no mouse buttons held. While that lasts, right-click camera turning doesn’t work and Escape doesn’t open the game menu. A long overlap window may be intended, but Escape shouldn’t stop working. Request: Please make GamePadCursorCentering 0 keep the cursor where it is during gamepad movement, or add a setting that lets the gamepad move the character without hiding or moving the mouse cursor. Using a one-stick movement pad with a mouse is a common setup, and the current behavior makes it unusable.

Expected behavior

Expected: The mouse cursor stays where it is currently, even if it is invisible, since cursor centering is disabled.

How to reproduce

Steps to reproduce:

/console GamePadEnable 1
/console GamePadCursorCentering 0
Place the mouse cursor anywhere other than the center of the screen.
Move the character with the gamepad stick, wait for cursor to disappear.
Move the mouse and note that it is now centered on the screen, not where it was previously located.