Joypad - itIsBrando/GBzLib GitHub Wiki

joypad.asm contains routines for interacting with the gameboy’s buttons

List of routines:

btn_scan

  • Gets the d-pad and ABXY buttons
  • Returns button mask in the form of PADB_… or PADF_… constants from hardware.inc

Parameters: None

Outputs: A - button mask

Destroys: C