Skip to content

0.2.2

Choose a tag to compare

@Producdevity Producdevity released this 22 Nov 11:47
  • New Face buttons option at the bottom of the Overlay tab. "As set" is the default. "Swapped" exchanges A with B and X with Y. It's for frontends whose controller layout puts A and B on the opposite buttons from what a game expects, like PortMaster's Nintendo layout on ROCKNIX.
  • The choice is saved as face_buttons in the port's own settings file and applies right away. Nothing outside the port changes.
  • The overlay menu always reads the raw buttons, so menu navigation stays the same with either choice.
  • Ports that load the preload shim get the option with no code change: it covers SDL_PollEvent, SDL_WaitEvent, SDL_WaitEventTimeout and SDL_GameControllerGetButton.
  • Statically linked ports pass button numbers through spo_face_button(n) before reading them, or call spo_map_sdl_event / spo_map_sdl3_event on controller events the overlay didn't consume. Starlet ports get this from Starlet de7e436.
  • Raw joystick reads (SDL_JoystickGetButton, joystick button events) and SDL_PeepEvents aren't covered. The details are in docs/api.md.

Tested on macOS and in an aarch64 Linux container with a virtual controller. Not yet checked on a handheld.