DEV-SNIP #1 - Input
Posted: Tue Nov 14, 2017 12:21 pm
All programs need input. All zeddies have a keyboard. Great! With the availability of peripherals with joystick connections then the world of user input is looking richer than ever. With great richness comes great complexity however.
Here is my humble submission in the category of a nice general purpose input routine, where input from a number of devices is focused into a few simple values which can tell you whether an input is:
* just activated
* held
* just released
* not activated
It's currently specialised for ZXpand but it's easily updated to work with, for example, Chroma or (I still don't believe they exist) Kempston
Here is my humble submission in the category of a nice general purpose input routine, where input from a number of devices is focused into a few simple values which can tell you whether an input is:
* just activated
* held
* just released
* not activated
It's currently specialised for ZXpand but it's easily updated to work with, for example, Chroma or (I still don't believe they exist) Kempston