USB extended keyboard support
Jon Abbott (1421) 2651 posts |
Would it be possible for the NetBSD USB Keyboard driver to instead of simply dropping unknown keys, to allow something else to act on them and also allow keys to be remapped? It has a static key mapping table which, if modifiable could easily allow support for mapping keys without the need to write USB drivers. Possibly by adding SWI’s to get/set the USB key map table address? For unmapped keys, could it raise an event or service call with the USB key code so a Module could act on it? |
Dave Higton (1515) 3525 posts |
If the table is held in RAM, it should be possible to add SWIs to get/set individual key codes. But: isn’t it possible to have more than one keyboard at a time connected? This is a naive question – I don’t know the answer. But if it’s possible, it’s also quite likely that the keyboards require some different mappings. How’s that handled – or indeed, is it handled at all? |
Chris Evans (457) 1614 posts |
The answer is yes! You can also have two mice which can give interesting results! Not sure about the mappings. |