wiiuse
Functions
Internal: Nunchuk

Functions

int nunchuk_handshake (struct wiimote_t *wm, struct nunchuk_t *nc, byte *data, unsigned short len)
 
void nunchuk_disconnected (struct nunchuk_t *nc)
 The nunchuk disconnected. More...
 
void nunchuk_event (struct nunchuk_t *nc, byte *msg)
 Handle nunchuk event. More...
 
void nunchuk_pressed_buttons (struct nunchuk_t *nc, byte now)
 Find what buttons are pressed. More...
 

Detailed Description

Function Documentation

◆ nunchuk_disconnected()

void nunchuk_disconnected ( struct nunchuk_t nc)

The nunchuk disconnected.

Parameters
ncA pointer to a nunchuk_t structure.

◆ nunchuk_event()

void nunchuk_event ( struct nunchuk_t nc,
byte *  msg 
)

Handle nunchuk event.

Parameters
ncA pointer to a nunchuk_t structure.
msgThe message specified in the event packet.

◆ nunchuk_pressed_buttons()

void nunchuk_pressed_buttons ( struct nunchuk_t nc,
byte  now 
)

Find what buttons are pressed.

Parameters
ncPointer to a nunchuk_t structure.
msgThe message byte specified in the event packet.