Skip to content

Added Numpad Keybinds as bind points for the Tourbox.#49

Merged
AndyCappDev merged 2 commits into
AndyCappDev:masterfrom
CrimsonVengeance:add-numpad-keys
Jun 26, 2026
Merged

Added Numpad Keybinds as bind points for the Tourbox.#49
AndyCappDev merged 2 commits into
AndyCappDev:masterfrom
CrimsonVengeance:add-numpad-keys

Conversation

@CrimsonVengeance

Copy link
Copy Markdown
Contributor

I may not see the pitfalls, so correct me if I'm wrong but I added keypad button binding to the Tourbox.

@AndyCappDev AndyCappDev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks — and you correctly identified the root cause. The GUI was capturing numpad scancodes and writing the right KEY_KP* names into the profile, but config_loader.KEY_NAMES (the parse whitelist) didn't include any of them, so they were silently dropped at parse time. Same shape of bug as #45 with KEY_MUTE.

Two things to address before merging:

  1. Incomplete coverage. A full numpad has 17 keys; this adds 12. Missing: KEY_KP0 (zero), KEY_KPSLASH (÷), KEY_KPASTERISK (×), KEY_KPENTER, KEY_KPEQUAL, KEY_NUMLOCK. Worth including so users don't hit the same silent-drop bug on the leftover keys.
  2. Style consistency. The existing file generates letter/number/F-key entries programmatically (config_loader.py:174-178); matching that pattern for KP0–KP9 keeps the file tight. Also fixes the stray spaces before : on KEY_KP5/KEY_KP6.

Suggestion inline.

Comment thread tuxbox/config_loader.py
@CrimsonVengeance

Copy link
Copy Markdown
Contributor Author

Thank you, I had the thought that I was missing some keys in the back of my mind, I should have looked further into it.

CrimsonVengeance and others added 2 commits June 26, 2026 09:59
Fixed incomplete coverage, and matched style for adding numpad number keys.

Co-authored-by: Scott Bowman <39808540+AndyCappDev@users.noreply.github.com>

@AndyCappDev AndyCappDev left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the quick turnaround — full 17-key numpad coverage looks good. Merging.

@AndyCappDev AndyCappDev merged commit 7729dad into AndyCappDev:master Jun 26, 2026
@CrimsonVengeance CrimsonVengeance deleted the add-numpad-keys branch June 26, 2026 17:10
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