osiweb / unified_retro_keyboard

Project to provide keyboard replacements for various classic computers, as well as classic ASCII keyboard
94 stars 12 forks source link

Allow keymaps to assign functions to keymap codes #24

Closed dfnr2 closed 3 years ago

dfnr2 commented 3 years ago

In the current implementation, each key code is hard-mapped to a function call or a value.

Consider an alternate approach (which eats more RAM) of maintaining a table of function calls.

Considerations: 1) might save RAM by using a hybrid approach. Self-insert values below the "action threshold", and look up function calls for values above the threshold.

2) need separate function tables for press and release.

dfnr2 commented 3 years ago

Uses more space, but cleans up function-specific code in dispatch routines.

dfnr2 commented 3 years ago

Explicit assignment of separate functions for press and release in the keymap has some problems:

dfnr2 commented 3 years ago

This functionality will be addressed with issue #26