I have typed in 'Bat and Ball' from the first MagPi and it works well. As a programming exercise which I know will be useful to me in the future, I decided to convert it to keyboard control. So far I have failed. All the methods I have come across so far seem to be incredibly over-involved and very tedious; some of them even rely upon emptying and then restoring an event buffer! The worst effect is the amount of time some of these methods must take.
What I want is something similar to the commands that are available in BBC BASIC, so GET, GET$, INKEY, and INKEY$ would be good starting points. But the one I really want for gaming is INKEY with a negative argument, e.g. INKEY(-66), see Archimedes BBC BASIC GUIDE page 63, sub-heading 'Scanning the keyboard', and the old BBC USER GUIDE page 273.
I don't want anything more complicated than that. Having been used to such an obvious solution to something which should not really be a problem anyway since the early 80's I don't intend to go back to anything less!
I will only be happy when I can control Bat and Ball using the Z and X keys by commenting-out the mouse control part of it and adding no more than a few extra lines of code. And none of those extra lines must start with the word 'import', ok?