Skip to content

Hide the mouse cursor after 2 s without mouse input - #47

Closed
CyberRacc wants to merge 1 commit into
rob646464:mainfrom
CyberRacc:feature/cursor-autohide
Closed

CyberRacc wants to merge 1 commit into
rob646464:mainfrom
CyberRacc:feature/cursor-autohide

Conversation

@CyberRacc

Copy link
Copy Markdown

Problem

When playing with a controller or the keyboard, the mouse cursor stays over the picture for the whole session.

Change

Register a game input layer right after aurora_initialize that passes every event through and asks for Aurora's PointerMode::AutoHide. The cursor hides after two seconds without mouse input over the game window and comes back as soon as the mouse moves. The F1 menu's layer sits above this one, so the menu keeps a visible cursor while it has the mouse. 8 lines in src/recomp/main.cpp, no new settings.

If you'd rather have this behind an option in F1 > Visuals (or Game), I'm happy to add one.

Tested

  • Linux (CachyOS, KDE Plasma 6 on Wayland), windowed and fullscreen, with a controller: the cursor hides after ~2 s, reappears on mouse movement, and stays visible in the F1 menu.
  • Not tested on Windows or macOS. It only uses Aurora's existing input-layer API.

🤖 Generated with Claude Code

https://claude.ai/code/session_01R8b3Mb2KcDU3n12NSYpkbA

AI assisted: yes

The cursor stayed over the picture while playing with a controller or the
keyboard. A game input layer now asks for Aurora's AutoHide pointer mode: the
cursor hides after two seconds without mouse input and comes back when the
mouse moves. The F1 menu's layer sits above it, so the menu keeps the cursor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R8b3Mb2KcDU3n12NSYpkbA
@CyberRacc CyberRacc closed this Nov 4, 2026
@CyberRacc
CyberRacc deleted the feature/cursor-autohide branch November 4, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant