Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multimedia keys #16502

Merged
merged 1 commit into from
May 12, 2024

Conversation

zoltanvb
Copy link
Contributor

@zoltanvb zoltanvb commented May 6, 2024

Description

Add a list of extra keys commonly found on "multimedia" keyboards: new RETROK_ entries and mappings for SDL, X11, Wayland, dinput, winraw drivers. Extend keyboard tester to cover also these keys.

Due to wide HW variety, there is no definite list, I used this collection which also agrees with my own memories of such a keyboard from several years ago.

Since the OS usually catches these keys before they reach RetroArch, the usefulness is mostly for Lakka or for Linux+KMS mode.
Using a programmable keyboard, I was able to hit most of the keys, see the last row of the extended keyboard tester:
RetroPad Remote-240505-192035

The missing ones were not present in the mapping software. Assigning them to a hotkey was also tried.

Outline for adding a new key was used from the OEM_102 commit.

Leaving it in draft for a few days, as feedback would be welcome on:

  • should some new keys be added? sleep/power, F16..F24?
  • any reason to add such keys to console / phone platforms?
  • any reason to add such keys to Apple platforms?
  • is app1 / app2 key being more used on actual physical keyboards, or rather "my computer"/"calculator"? There are several platforms where both variants are present.

Related Issues

Fixes #14298
Fixes #12986 (not related to new keys, but it is in the same mapping file)

Related Pull Requests

#16390

Extended RETROK_ values with 18 new items, commonly found on
"multimedia" keyboards.

Mapping added for SDL, X11, Wayland, dinput, winraw keymaps.

Keyboard tester function of Remote Retropad extended to cover new keys.

One fix in Android mapping for libretro#12986
@zoltanvb zoltanvb marked this pull request as ready for review May 9, 2024 05:16
@zoltanvb
Copy link
Contributor Author

zoltanvb commented May 9, 2024

No strong opinions, so from my point of view it is OK as it is.

Copy link
Member

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the retropad updates 👍 I was able to run the core. My multimedia keys were caught by the OS, but things were looking good.

@LibretroAdmin
Copy link
Contributor

Sorry for the long wait @zoltanvb .

Looks good.

@LibretroAdmin LibretroAdmin merged commit 198656e into libretro:master May 12, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keyboard volume up, down, mute keys not detected Keys on physical keyboard on android are mixed up
3 participants