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

Slot-2 Guitar Grip controller support. More...

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

Functions

bool guitarGripIsInserted (void)
 Check for the guitar grip.
 
u16 guitarGripKeysDown (void)
 Obtains the keys that have just been pressed in the guitar grip.
 
u8 guitarGripKeysHeld (void)
 Obtains the keys currently held in the guitar grip.
 
u16 guitarGripKeysUp (void)
 Obtains the keys that have just been released in the guitar grip.
 
void guitarGripScanKeys (void)
 Obtain the current guitar grip state.
 

Detailed Description

Slot-2 Guitar Grip controller support.

Function Documentation

◆ guitarGripIsInserted()

bool guitarGripIsInserted ( void  )

Check for the guitar grip.

Returns
Returns true if there is a guitar grip in the slot-2.

◆ guitarGripKeysDown()

u16 guitarGripKeysDown ( void  )

Obtains the keys that have just been pressed in the guitar grip.

Returns
Returns a bitmask of the currently held keys.

◆ guitarGripKeysHeld()

u8 guitarGripKeysHeld ( void  )

Obtains the keys currently held in the guitar grip.

Returns
Returns a bitmask of the currently held keys.

◆ guitarGripKeysUp()

u16 guitarGripKeysUp ( void  )

Obtains the keys that have just been released in the guitar grip.

Returns
Returns a bitmask of the currently held keys.

◆ guitarGripScanKeys()

void guitarGripScanKeys ( void  )

Obtain the current guitar grip state.

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