🔗 A set of Game Boy Advance (GBA) C++ libraries to interact with the Serial Port. Its main purpose is providing multiplayer support to homebrew games.
LINK_UNIVERSAL_MAX_PLAYERS
now defaults to 5
send(...)
now returns a boolean, honoring LinkWireless
' responseLinkRawCable
internallymaxTransmissions
and waitTimeout
settings to setup(...)
std::array
to avoid unnecessary memory allocationsLINK_RAW_WIRELESS_ENABLE_LOGGING
is not definedLINK_UNIVERSAL_GAME_ID_FILTER
)transfer(...)
methodLINK_SPI_8BIT_MODE
)0x3d
(Bye) command to ensure the adapter always ends in low power consumption modeA+B+START+SELECT
combo in _full
examplesServer
struct (returned by getServers(...)
):
currentPlayerCount
: number of active players in the room (or 0 if it's full)isFull()
: a boolean indicating whether the room is full or not (if true, the connection will fail)maxPlayers
, the library will now use the Wireless Adapter's native system to set the room's player limit. It no longer needs to run an EndHost
command when a room is closedreceive(...)
and LinkWireless_demo
exampleLinkWireless_demo
examplemaxPlayers
(5
-> 4
) when setting up LinkWireless
LinkUniversal_basic
exampleserve(...)
can now update the broadcast data if it's already servingdeactivate()
, the 0x3d
command is sent to the adapter to put it in low consumption modeserve(...)
method now accepts an optional gameId
that will be broadcasted along with the game and user names