Skip to content

Keyboard players: key names for the numpad and punctuation, per-player default keys - #54

Open
mariomariokt64 wants to merge 1 commit into
N64Recomp:mainfrom
mariomariokt64:keyboard-players
Open

mariomariokt64 wants to merge 1 commit into
N64Recomp:mainfrom
mariomariokt64:keyboard-players

Conversation

@mariomariokt64

@mariomariokt64 mariomariokt64 commented Nov 7, 2026 •

Copy link
Copy Markdown

@DarioSamo

Changes

  • fix: key names. The controls page showed ? for numpad keys, punctuation and Ctrl/Alt/Super, because scancode_codepoints had no entries for them.

    • Ctrl, Alt and Super use promptfont glyphs, as Shift does.
    • The numpad (Num 8, Num Enter, …) and punctuation (, . / …) are shown as text, as F13–F24 are.
  • feat: per-player keyboard defaults. set_default_mapping_for_player_keyboard(player, input, fields) lets a game give each "Keyboard (Player N)" profile its own default keys. They are used:

    • when the profile is created (instead of an empty profile);
    • by Reset to defaults (instead of clearing the profile);
    • by a single input's reset (instead of player 1's keys).

    A player with no defaults set behaves as before. The game checks RECOMPINPUT_HAS_PLAYER_KEYBOARD_DEFAULTS, so it still builds against an older frontend.

@mariomariokt64 mariomariokt64 changed the title Keyboard players Keyboard players: key names for the numpad and punctuation, per-player default keys Nov 7, 2026
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.

1 participant