Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2019-11-23 16:39:50

zeropagebyte
Member
Registered: 2019-02-22
Posts: 32

How do I make the joypad work?

I'm having trouble making the joypad work. How do I make it change?

Offline

 

#2 2019-11-23 20:40:36

gbjosh
Member
From: KY
Registered: 2016-06-15
Posts: 51

Re: How do I make the joypad work?

GBDK or asm?

Last edited by gbjosh (2019-11-23 20:40:47)

Offline

 

#3 2019-11-24 06:27:28

zeropagebyte
Member
Registered: 2019-02-22
Posts: 32

Re: How do I make the joypad work?

gbjosh wrote:

GBDK or asm?

ASM

Offline

 

#4 2019-11-25 05:37:25

tmk
Member
Registered: 2017-05-01
Posts: 63
Website

Re: How do I make the joypad work?

If you mean reading joypad state then here's an assembly commented example. And a couple more for beginners.

Offline

 

#5 2019-12-03 16:14:43

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: How do I make the joypad work?

Here is another example that features more functionality, such as canceling out Up+Down and Left+Right, SsAB causing a soft-reset, and computing buttons just pressed this frame.
PinoBatch's routines in Libbet are well-documented, concise, and easy to read, too!


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson