Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] C128 keyboard: 40/80 hotkey and CAPSLOCK indicator #529

Closed
theflyingape opened this issue Sep 20, 2024 · 4 comments · Fixed by #531
Closed

[Feature request] C128 keyboard: 40/80 hotkey and CAPSLOCK indicator #529

theflyingape opened this issue Sep 20, 2024 · 4 comments · Fixed by #531

Comments

@theflyingape
Copy link

Symbolic mapping works great with the notable exception with F7 toggling between 40/80 column mode: it also generates the C128 F7 function key mapped as BASIC "LIST". Can 40/80 toggle be added into the core's Hotkey mapping options for reassignment?

Putting keyboard mapping into Positional mode allows F7 to work separately and appropriately, nice, but then there's no friendly way to know about the emulator's toggle status of capslock using F4. Could a LED icon be added into the C= status bar for that?

@sonninnos
Copy link
Collaborator

Ok, I managed to remove the hardcoding of the key so that it works with any keymap. And also noticed the default symbolic map was missing 40/80 and NoScroll, so decided to add them to F9 and F10 since they are free.

Current CapsLock in symbolic is right Alt, and maybe not the best place, but not many other places are available. But it effectively behaves the same as ShiftLock, which is in host CapsLock in any case, so why isn't that keyboard LED enough?

@theflyingape
Copy link
Author

All of that sounds great! Is that managed entirely within the core, or are there external vice/data files that need to get replaced in retroarch's system/vice, too?

Not important and was hoping it was a trivial addition, but on my Pi 4/5 tests, the keyboard LED does not toggle suggesting the event is not getting passed to support it. Instead on startup, the CapsLock LED goes ON and remains ON regardless of pressing its key; however functionally, it works as expected within the running core.

@theflyingape
Copy link
Author

Not meant to pile on the CapsLock thingy, but the static keyboard LED indicator does that only under KMS; the LED toggles as expected when running under Wayland.

VICE x128 status bar on Pi 5 KDE:
Screenshot_20240921_085914

@sonninnos
Copy link
Collaborator

Indeed they do not behave the same, since CapsLock affects only letters.

When userport joystick adapters are not in use, there is plenty of space:
retroarch_2024_09_23_14_39_29_266

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 a pull request may close this issue.

2 participants