libretro / libretro/RetroArch

Remapped keyboard keys are ignored

Open
#10,446 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

Description

On my desktop, I've the "caps lock" key (that useless key to the left of "A") mapped to escape. This is not uncommon for developers, since Esc is a very used key, and "Caps lock" has very little use (at least for me).

This can be set up via wayland or Xorg -- back when I used Xorg, this was configured in my xorg.conf.d, but with wayland/swaywm, it's just a sway setting.

This seems to work for pretty much all apps, but for some reason, not on retroarch. On retroarch however, the "Caps lock" key does nothing.
I'd try to press the "real" escape key, however, when moving offices last year it came off the keyboard and got lost. Since it's a key I never used, I just laughed it off -- but my keyboard no longer has that key, regrettably.

On top of this, there seems to be a second bug: when closing the window (via my desktop's hotkey), I get a "press again to exit" message on retroarch. Trying to close it again does not work.

Expected behavior

Pressing the key that's mapped to "esc" to my system to exit retroarch.

Actual behavior

Pressing the key that's mapped to "esc" to my system does nothing.

Steps to reproduce the bug
  1. Configure either Xorg or Wayland to use xkb_options caps:escape.
  2. Run RetroArch
  3. Press Esc
Bisect Results

This doesn's seem to be a new bug.

Version/Commit

You can find this information under Information/System Information

  • RetroArch: 1.8.5
Environment information
  • OS: ArchLinux, with swaywm as a wayland compositor.
  • Compiler: n/a

I also tried all the input drivers available; all had the same result.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the Xorg or Wayland caps:escape mapping and review RetroArch's input-driver handling, since the report says all available drivers behave the same. Also test the desktop close hotkey and the repeated exit prompt. Done means the remapped Escape key exits RetroArch and the close action works as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.