GBDK 2020 Docs
API Documentation for GBDK 2020
joypads_t Struct Reference

#include <gb.h>

Data Fields

UINT8 npads
 
union {
   struct {
      UINT8   joy0
 
      UINT8   joy1
 
      UINT8   joy2
 
      UINT8   joy3
 
   } 
 
   UINT8   joypads [4]
 
}; 
 

Detailed Description

Multiplayer joypad structure.

Must be initialized with joypad_init() first then it may be used to poll all avaliable joypads with joypad_ex()

Field Documentation

◆ npads

UINT8 joypads_t::npads

◆ joy0

UINT8 joypads_t::joy0

◆ joy1

UINT8 joypads_t::joy1

◆ joy2

UINT8 joypads_t::joy2

◆ joy3

UINT8 joypads_t::joy3

◆ joypads

UINT8 joypads_t::joypads[4]

◆ @1

union { ... }

The documentation for this struct was generated from the following file: