profi200 / open_agb_firm

open_agb_firm is a bare metal app for running GBA homebrew/games using the 3DS builtin GBA hardware.
GNU General Public License v3.0
860 stars 42 forks source link

[QUESTION] Can a loaded (custom) .gba access X, Y buttons? #45

Closed draincode closed 2 years ago

draincode commented 2 years ago

Can a GBA rom loaded with open_agb_firm access the extra buttons (X, Y, perhaps even touchscreen?)?

I've tried reading the halfword at 0x04000136 (NDS EXTKEYIN) with no luck. I've also tried to read it from the addresses REG_HID_PAD, REG_LGY_PAD_VAL (which maybe makes no sense from the .gba side).

One thing I noticed is that pressing Y freezes screen for some frames. In every game, even at boot logo. Why is that?

profi200 commented 2 years ago

No, at least not via standard input. You can only access these buttons on the GBA side.

Y is the screenshot feature and it's unintentionally causing the freezes (it's a bug i'm aware of). This has been changed to Y + SELECT.

draincode commented 2 years ago

Ah, I see. Thanks for the info!!