Posted By
![](/images/g.gif) Csabo on 2018-11-14 20:10:17
| Re: How to read joystick?
Spektro, what you said is right. STA $FF08/LDA $FF08: check Joystick (only). STA $FD30/STA $FF08/LDA $FF08: check keyboard (if you're checking for 5/6/R/D/T, that can come from the joystick as well).
My games (e.g. 2048, FloodIt) come with ready-to use libraries including a keyboard handler loop, which includes Joystick handling as well. There's also a generic high score list handler and a generic string input routine. I wrote these in hopes that no-one ever have to code them again Anyway, you might want to check that out.
|