Skip to content

Mac: let players change the keyboard keys #1216

Open

Description

@elieteyssedou

The Mac keyboard keys are fixed in dm/host/front_mac.m
(key_bit, on_key). I found no setting or issue for them:
#878 and #1127 assign the keyboard to a player, not keys to
buttons.

Why: on Mario Kart World with a MacBook's built-in QWERTY
keyboard, Space made drifting much easier than E.

What I run locally, as a small patch of env switches on
777a5f6c (upstream's keys stay as duplicates):

Key Button
Space R (drift)
left Shift L (items)
arrows right stick
right Command + arrows D-pad
-, = -, +

Request: one setting that maps a key to a button, per game,
for example DM_KEY_MAP=space:R,lshift:L (the format is only
a suggestion).

Two traps from the patch: macOS reports modifiers as
flagsChanged, with no key down or up, and Command + key has
to stay a menu shortcut unless it is mapped.

Happy to share the patch if it helps. Nothing here contains
game files, keys or data extracted from a game.

Activity

  1. added
    mac
    on Nov 4, 2026
  2. seedds commented on Nov 28, 2026

    @seedds
    Owner

    Thanks for the feature request and the Mario Kart World drift mapping example, @elieteyssedou.

    PR #3141 is currently open with a general controls-file design that covers Mac keyboard remapping alongside controller button remapping and mouse-as-stick. Since main still uses the fixed keyboard map until that (or another mapping design) lands, we're keeping this issue open for now and tracking the Mac keyboard remapping use case against #3141.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    mac

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions