xbmc
Functions
nunchuk.h File Reference

Nunchuk expansion device. More...

#include "wiiuse_internal.h"
Include dependency graph for nunchuk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int nunchuk_handshake (struct wiimote_t *wm, struct nunchuk_t *nc, byte *data, unsigned short len)
 Handle the handshake data from the nunchuk. More...
 
void nunchuk_disconnected (struct nunchuk_t *nc)
 The nunchuk disconnected. More...
 
void nunchuk_event (struct nunchuk_t *nc, byte *msg)
 Handle nunchuk event. More...
 

Detailed Description

Nunchuk expansion device.

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_handshake()

int nunchuk_handshake ( struct wiimote_t wm,
struct nunchuk_t nc,
byte *  data,
unsigned short  len 
)

Handle the handshake data from the nunchuk.

Parameters
ncA pointer to a nunchuk_t structure.
dataThe data read in from the device.
lenThe length of the data block, in bytes.
Returns
Returns 1 if handshake was successful, 0 if not.