src/classic.h File Reference

Classic controller expansion device. More...

#include "wiiuse_internal.h"

Include dependency graph for classic.h:

This graph shows which files directly or indirectly include this file:


Functions

int  classic_ctrl_handshake (struct wiimote_t *wm, struct classic_ctrl_t *cc, byte *data, unsigned short len)
  Handle the handshake data from the classic controller.
void  classic_ctrl_disconnected (struct classic_ctrl_t *cc)
  The classic controller disconnected.
void  classic_ctrl_event (struct classic_ctrl_t *cc, byte *msg)
  Handle classic controller event.

Detailed Description

Classic controller expansion device.


Function Documentation

void classic_ctrl_disconnected ( struct classic_ctrl_t cc  ) 

The classic controller disconnected.

Parameters:
cc  A pointer to a classic_ctrl_t structure.

void classic_ctrl_event ( struct classic_ctrl_t cc,
byte *  msg  
)

Handle classic controller event.

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

int classic_ctrl_handshake ( struct wiimote_t wm,
struct classic_ctrl_t cc,
byte *  data,
unsigned short  len  
)

Handle the handshake data from the classic controller.

Parameters:
cc  A pointer to a classic_ctrl_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:08 2008 for wiiuse by  doxygen 1.5.4