TomW wrote:
Rich, are you checking joystick directions at all times? What happens if the user doesn't have a joystick plugged in?
Sorry to derail: yes, I am. I added the joystick support in a rush, but yeah I guess this is going to be a problem if there's no joystick connected (presumably it'll get 0, 0 from the ADC all the time, which corresponds to right, down?). If you still have that disc image I sent you, could you see what your Beeb does without a joystick connected, and see if he's constantly moving right? Aaargh what a crap bug that will be.
So, if I want to check if there's a joystick connected, is the best way to listen for the fire button being pressed, and then flag it as 'connected'? (obviously this'll then break if you disconnect the joystick midgame).