src/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:


Functions

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

Detailed Description

Nunchuk expansion device.


Function Documentation

void nunchuk_disconnected ( struct nunchuk_t nc  ) 

The nunchuk disconnected.

Parameters:
nc  A pointer to a nunchuk_t structure.

void nunchuk_event ( struct nunchuk_t nc,
byte *  msg  
)

Handle nunchuk event.

Parameters:
nc  A pointer to a nunchuk_t structure.
msg  The message specified in the event packet.

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

Handle the handshake data from the nunchuk.

Parameters:
nc  A pointer to a nunchuk_t structure.
data  The data read in from the device.
len  The length of the data block, in bytes.
Returns:
Returns 1 if handshake was successful, 0 if not.


Generated on Wed Apr 2 19:30:10 2008 for wiiuse by  doxygen 1.5.4