libnds
Loading...
Searching...
No Matches
Functions
piano.h File Reference

NDS Easy Piano option pack support. More...

#include <stdbool.h>
#include <nds/ndstypes.h>

Functions

bool pianoIsInserted (void)
 Check for piano option pack.
 
u16 pianoKeysDown (void)
 Obtains the current piano keys pressed state.
 
u16 pianoKeysHeld (void)
 Obtains the current piano keys held state.
 
u16 pianoKeysUp (void)
 Obtains the current piano keys released state.
 
void pianoScanKeys (void)
 Obtain the current piano state.
 

Detailed Description

NDS Easy Piano option pack support.

Function Documentation

◆ pianoIsInserted()

bool pianoIsInserted ( void  )

Check for piano option pack.

Returns
true if the cart in the GBA slot is the piano option pack.

◆ pianoKeysDown()

u16 pianoKeysDown ( void  )

Obtains the current piano keys pressed state.

Returns
Bitmask of keys.

◆ pianoKeysHeld()

u16 pianoKeysHeld ( void  )

Obtains the current piano keys held state.

Returns
Bitmask of keys.

◆ pianoKeysUp()

u16 pianoKeysUp ( void  )

Obtains the current piano keys released state.

Returns
Bitmask of keys.

◆ pianoScanKeys()

void pianoScanKeys ( void  )

Obtain the current piano state.

Call this function once per main loop to use the piano functions.