libnds
Functions
paddle.h File Reference

Slot-2 Paddle controller support. More...

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

Functions

bool paddleIsInserted (void)
 Check for the paddle. More...
 
u16 paddleRead (void)
 Obtain the current paddle state. More...
 
void paddleReset (void)
 Resets the paddle device. More...
 

Detailed Description

Slot-2 Paddle controller support.

Function Documentation

◆ paddleIsInserted()

bool paddleIsInserted ( void  )

Check for the paddle.

Returns
Returns true if a paddle is in the slot-2.

◆ paddleRead()

u16 paddleRead ( void  )

Obtain the current paddle state.

Returns a u16 containing a 12bit number (fixed point fraction), incrementing for clockwise rotations and decrementing for counterclockwise/

Returns
The value.

◆ paddleReset()

void paddleReset ( void  )

Resets the paddle device.

May change the current value to 0xFFF, 0x000, or 0x001. May perform other unknown internal reset operations. Normally not needed.