PicoMiteVGA PETSCII ROBOTS release candidates
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4220 |
Hey folks, If it works, it works, but IMO we should probably be reading directly connected keyboard with ON PS2, possibly (if such a thing works) in parallel with INKEY$ for a potentially attached "console keyboard". There is code to handle ON PS2 and map from scan codes to something more useful here: https://github.com/thwill1000/mmbasic-sptools/blob/master/src/splib/ctrl.inc and you can see it in use in https://github.com/thwill1000/mmbasic-lazer-cycle. Notes: 1. In theory it can even handle that Shift-Tab combination for the map ... or at least it could if I'd included the Shift scan-code mappings in my code. 2. Unlike INKEY$ I don't think ON PS2 knows anything about keyboard internationalisation, the scan codes instead refer to physical key locations irrespective of what is printed on them ... I may be wrong. Best wishes, Tom Edited 2023-12-13 19:46 by thwill |
||||