Happy_Dude Posted November 21, 2004 Share Posted November 21, 2004 I must be missing somthing 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 Quote Link to comment Share on other sites More sharing options...
+Mitch Posted November 22, 2004 Share Posted November 22, 2004 Here's some info form the 7800 dev kit. 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) Hope that helps. Mitch 1 Quote Link to comment Share on other sites More sharing options...
Happy_Dude Posted November 22, 2004 Author Share Posted November 22, 2004 Thanks I only need 2 inputs at the moment so that helps a lot But how on earth do you read the stick All the source I have either AND's SWCHA or checks the bits. And neither method works for me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.