Skip to content

Input cycling and overlay system

SomeoneIsWorking requested to merge SomeoneIsWorking/ryujinx:input-cycle into master

This PR has two things

####Input Cycling:

  • You can setup hotkeys to cycle inputs for players 1-4
  • image
  • Useful for when you want need to switch between devices quickly.

####Overlays:

  • When making input cycling, I wanted some visual feedback.
  • But toasts don't render on top of games.
  • I used SkiaSharp to render overlays onto the render pipeline.
  • image
  • For example this appears when you load a game and when you cycle through inputs.
  • Duration can be configured from UI settings.
  • image

I only tested these on MacOS (my current dev machine).
Later I will test on Windows and Bazzite.

Issues

  • The initial overlay timeout starts during the game loading so it times-out too quickly or doesn't show at all.

TESTED ON BAZZITE

Using Kirby Star Allies

  • The overlay is upside down
  • It drops to single digit frames while the overlay is being displayed
Edited by SomeoneIsWorking

Merge request reports

Loading