RevEng Posted February 23, 2010 Share Posted February 23, 2010 I threw together a quick little bB demo program that demonstrates how to read the B and C buttons on the Sega Genesis controller.Why bother? 3rd party genesis pads can be had cheaply and they work without mods on the 2600, making them a popular choice for those of us that like gamepads. On top of that, they're trivial to support in your code.2buttonread.bas2buttonread.bas.binThe program shows a red screen if the genesis controller was NOT detected, or a light-blue one if it WAS detected. Then pressing the B and C buttons will show up on the controller on the screen.If anyone wants to see more proof-of-concepts, take a look at my 2-button hack thread which has a homebrew contribution from our very own batari.It seems that some types of Genesis controllers don't like the way bB handles VBLANK. Do the following for improved compatibility...Copy over "std_kernel.asm" from your bB includes directory over to your project directory. Then take this section of code (search for "VBLANK")... LDA #%11000010 sta WSYNC STA VBLANK ...and change it to...LDA #%01000010 ; *change top bit to 0, so paddle caps don't discharge* sta WSYNC STA VBLANK After that, rebuild your game, and it should work with all genesis controllers. 3 1 Quote Link to comment Share on other sites More sharing options...
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.