Skip to content

Add dynamic keymap reloading on selection change#106

Merged
chrisgleissner merged 3 commits into
mainfrom
fix/positional-mapping
Mar 17, 2026
Merged

Add dynamic keymap reloading on selection change#106
chrisgleissner merged 3 commits into
mainfrom
fix/positional-mapping

Conversation

@chrisgleissner

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 17, 2026 14:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the OBS source to support runtime keyboard keymap switching and adjusts the built-in “Positional US” keymap mappings to better match intended positional/behavioral rules.

Changes:

  • Reload the active keyboard keymap in c64_update() when the keyboard_keymap setting changes.
  • Refine positional_us.c64keymap.ini mappings for punctuation and navigation/edit keys (e.g., Insert/Delete, semicolon/quote, shifted punctuation).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/c64-source.c Adds keymap reload logic during settings updates.
data/keymaps/positional_us.c64keymap.ini Updates positional US key mappings and accompanying comments.

Comment thread src/c64-source.c
Comment thread data/keymaps/positional_us.c64keymap.ini Outdated
Comment thread src/c64-source.c Outdated
Comment thread data/keymaps/positional_us.c64keymap.ini Outdated
chrisgleissner and others added 2 commits March 17, 2026 16:15
- Use snprintf instead of strncpy in c64_update() to guarantee NUL-termination
  of keyboard_keymap_name; also record the attempted name before load so
  repeated c64_update() calls on a missing keymap don't spam the log.
- Update test assertions to match current positional_us keymap:
  Shift+Home → 0x94 (INS), Shift+Equal → 0x3D (=).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chrisgleissner chrisgleissner merged commit 9783cf5 into main Mar 17, 2026
41 checks passed
@chrisgleissner chrisgleissner deleted the fix/positional-mapping branch March 17, 2026 17:03
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