GideonZ / 1541ultimate

Official GIT archive of 1541 ultimate II sources
GNU General Public License v3.0
174 stars 45 forks source link

USB keyboard - joystick replacement #44

Open BacchusFLT opened 5 years ago

BacchusFLT commented 5 years ago

On an external USB keyboard,the numeric keyboard returns the numbers and NumLock has no effect.

Alternative 1: On a standard PC keyboard, NumLock toggles between numeric keyboard and using the keys for cursor movement.

Alternative 2: Using an emulator on a bigger system, a standard option is using the numeric keyboard as joystick. With an external USB keyboard, I would like to suggest having NumLock toggle between numeric keyboard (default - as it works today) and joystick emulation (new feature). (Enough keys to allocate a few to other purposes - "'-" for swapping port 1/2 and "+" for autofire?)

Here I would vote for Alternative 2.

thomasf commented 5 years ago

It would be great if it worked well even on TKL (tenkeyless) keyboards or other smaller layouts. Both alternative 1 and 2 can maybe be implemented using overlay keymaps feature as suggested in #42, support for keyboard layers with keys to toggle layers can implement both alternatives