Skip to content

Gamepad input is ignored when window is unfocused #148

@ssokolow

Description

@ssokolow

Describe the bug

Unlike most of the applications on my Linux system (mupen64plus has the same bug), when Render96's window isn't focused, it ignores gamepad inputs.

To Reproduce
Steps to reproduce the behavior:

  1. Start Render96 on Linux
  2. Focus another window (eg. on a different monitor)
  3. Press a button

Expected behavior

Gamepad input is not indirected through the X server, so it has no concept of window focus. Render96 shouldn't go out of its way to ignore gamepad inputs.

Desktop (please complete the following information):

ssokolow@monolith-tng ~ % lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.3 LTS
Release:        24.04
Codename:       noble
ssokolow@monolith-tng ~ % echo $XDG_CURRENT_DESKTOP 
KDE

Additional context

I like to listen to podcasts or documentaries or other such stuff while I game, and I like to keep keyboard focus on the YouTube player so I can do stuff like easily pausing/resuming, rewinding to re-hear something that required more attention than usual, or skipping sponsor/ad reads that lack SponsorBlock definitions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions