Repository navigation
Conversation
Contributor
Author
monofuel
force-pushed
the
anbernic-handhelds
branch
from
October 21, 2026 20:08
4a35b35 to
92d48ba
Compare
monofuel
force-pushed
the
anbernic-handhelds
branch
from
October 22, 2026 01:50
92d48ba to
022c6bb
Compare
monofuel
force-pushed
the
anbernic-handhelds
branch
from
October 22, 2026 02:12
022c6bb to
c6ad637
Compare
monofuel
marked this pull request as ready for review
October 22, 2026 02:29
Contributor
Author
|
Updated with better distinction of scan / polling logic. scanning for gamepads when polling for input was very bad performance on some platforms. pollGamepads() now only handles gamepad input, and scanGamepads() handles discovery. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

I'm using Paddy in mono-retro-player and on mdev handhelds. Those handheld controllers have no udev joystick labels, so the sysfs/evdev fallback is needed to discover them. I've manually tested the original mdev fallback on the RG SP and RG DS Plus.
Automatic discovery can stall game frames on Windows, including keyboard/mouse games with no controller connected. Applications should choose when to pay that cost. Startup discovery stays, while new or reconnected controllers require an explicit
scanGamepads()call on every platform. Per-frame polling reads known controllers and handles disconnections.CI passes on Linux, Windows, and macOS, including native lifecycle checks and fake-device discovery regressions. The real Emscripten backend also passes a WASM/Chromium connect, rescan, and disconnect test.