Skip to content

Conversation

@nijm
Copy link
Contributor

@nijm nijm commented Nov 2, 2025

Description

Use hotkeys from core port 0 (player 1). E.g., if user 2 is mapped to core port 0, then hotkeys can be used by user 2 (and only user 2). Hotkey enable and other hotkey buttons must be configured in the autoconfig file for your gamepad.

Works with input remap files or with the feature in my related PR #18331 to map users to core ports on first button press.

Notes:

  • If any user > 0 is mapped to core port 0 then keyboard hotkeys don't work (keyboard input is for user 0).
  • The code in input_keys_pressed was indexing the autoconf binds by port. I believe it should be joy_idx as the autoconf binds are for each gamepad device, not each user. Please let me know if I've misunderstood.

Related Pull Requests

Map users to core ports on first button press #18331

Reviewers

@sonninnos (you were mentioned in my other PR).

I hope this will be useful for others. It works for my use case (details in my related PR). Please let me know if there's anything else I should consider.

E.g., if user 2 is mapped to core port 0, then hotkeys
can be used by user 2 (and only user 2).
@LibretroAdmin LibretroAdmin merged commit 081ced9 into libretro:master Nov 4, 2025
31 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.

2 participants