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

VIC-20 keyboard mapping #96

Open
aycock opened this issue Apr 22, 2024 · 0 comments
Open

VIC-20 keyboard mapping #96

aycock opened this issue Apr 22, 2024 · 0 comments

Comments

@aycock
Copy link

aycock commented Apr 22, 2024

The VIC-20 emulation wasn't letting me enter in the * character to the VIC-20. There seems to be two issues: the first is that the * appears in both the shifted and unshifted tables (systems/vic20.h), but chips/kbd.h:kbd_register_key() only permits one mask per key if I'm understanding the code correctly. However, once the additional * is removed from the shifted table by replacing it with a space, I could generate a * and ) but not ( any more (for my keyboard, * ( ) are shift+8 9 0 respectively). A real VIC-20 keyboard has its parens over 8 and 9, and I was able to fix both these issues here by changing:

https://github.com/floooh/chips/blob/bd1ecff58337574bb46eba5e7e16937899360e56/systems/vic20.h#L589C9-L590C19

to

"&ygvbhu("
")ijnmko "
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

No branches or pull requests

1 participant