1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 11:28:10 +11:00
collapseos/arch/z80/sms/blk/610

17 lines
554 B
Plaintext
Raw Normal View History

2020-05-16 05:41:06 +10:00
Pad driver - read input from MD controller
Conveniently expose an API to read the status of a MD pad A.
Moreover, implement a mechanism to input arbitrary characters
from it. It goes as follow:
* Direction pad select characters. Up/Down move by one,
Left/Right move by 5
* Start acts like Return
* A acts like Backspace
* B changes "character class": lowercase, uppercase, numbers,
special chars. The space character is the first among special
chars.
* C confirms letter selection
(cont.)