xbmc
Functions
events.h File Reference

Handles wiimote events. More...

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

Go to the source code of this file.

Functions

void wiiuse_pressed_buttons (struct wiimote_t *wm, byte *msg)
 Find what buttons are pressed. More...
 
void handshake_expansion (struct wiimote_t *wm, byte *data, unsigned short len)
 Handle the handshake data from the expansion device. More...
 
void disable_expansion (struct wiimote_t *wm)
 Disable the expansion device if it was enabled. More...
 

Detailed Description

Handles wiimote events.

The file includes functions that handle the events that are sent from the wiimote to us.

Function Documentation

◆ disable_expansion()

void disable_expansion ( struct wiimote_t wm)

Disable the expansion device if it was enabled.

Parameters
wmA pointer to a wiimote_t structure.
dataThe data read in from the device.
lenThe length of the data block, in bytes.

If the data is NULL then this function will try to start a handshake with the expansion.

◆ handshake_expansion()

void handshake_expansion ( struct wiimote_t wm,
byte *  data,
unsigned short  len 
)

Handle the handshake data from the expansion device.

Parameters
wmA pointer to a wiimote_t structure.
dataThe data read in from the device.
lenThe length of the data block, in bytes.

Tries to determine what kind of expansion was attached and invoke the correct handshake function.

If the data is NULL then this function will try to start a handshake with the expansion.

◆ wiiuse_pressed_buttons()

void wiiuse_pressed_buttons ( struct wiimote_t wm,
byte *  msg 
)

Find what buttons are pressed.

Parameters
wmPointer to a wiimote_t structure.
msgThe message specified in the event packet.