Skip to content

Android: auto-hide the on-screen menu button, and open the menu with Back/Select#249

Open
RakugaKid wants to merge 1 commit into
JRickey:mainfrom
RakugaKid:android-menu
Open

Android: auto-hide the on-screen menu button, and open the menu with Back/Select#249
RakugaKid wants to merge 1 commit into
JRickey:mainfrom
RakugaKid:android-menu

Conversation

@RakugaKid

@RakugaKid RakugaKid commented Jul 2, 2026

Copy link
Copy Markdown

Hi! First-time contributor here! Opening this as a proposal, happy to adjust anything or close it if it doesn't fit. 🙂

What

On Android the on-screen menu (hamburger) button was always visible, awkward on handhelds like the Odin 2 that play with a built-in gamepad.

  • TouchOverlay: the whole on-screen overlay (stick, face cluster, and the menu hamburger) now hides whenever a physical controller is connected, via a single unified visibility rule. Touch-only users are unaffected. The overlay returns when no pad is present.
  • BattleShipActivity: the Android Back button and gamepad Select now toggle the menu (dispatchKeyEvent → the existing menu-toggle path), so it stays reachable once the hamburger is hidden.

Why

With a controller connected the hamburger was redundant clutter, and hiding only the gameplay buttons (previous behaviour) left no way to reach the menu without touching the screen.

Testing

Built and ran on an Odin 2 Mini: overlay hides with the built-in pad, Back and Select open/close the menu, and touch-only mode (no pad) still shows/uses the hamburger.

…Back/Select

TouchOverlay: the whole on-screen overlay (stick, face buttons, and the
menu hamburger) now hides whenever a physical controller is connected,
via a single unified visibility rule. Touch-only users are unaffected;
the overlay returns when no pad is present.

BattleShipActivity: the Android Back button and gamepad Select now toggle
the libultraship menu (dispatchKeyEvent -> the existing menu-toggle path),
so the menu stays reachable once the hamburger is hidden.

Tested on an Odin 2 Mini.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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