I set the ports to input
lda #0
sta CTLSWA
Then it should be a simple matter of loading SWCHA and checking for zeros
But thats not working for me.
Do I need to read the stick at a certain point (like in vblank) or somthing
Posted Sun Nov 21, 2004 8:24 AM
Posted Sun Nov 21, 2004 6:11 PM
How to use the right and left joystick buttons (7800 games only): Initialize SWCHB with the following 4 instructions: LDA #$14 STA CTLSWB LDA #0 STA SWCHB Read the fire buttons from: INPT0 - player 0, right button (d7=1 if pushed) INPT1 - player 0, left button (d7=1 if pushed) INPT2 - player 1, right button (d7=1 if pushed) INPT3 - player 1, left button (d7=1 if pushed)
Posted Mon Nov 22, 2004 4:31 AM
0 members, 1 guests, 0 anonymous users