xbmc
|
Nunchuk expansion device. More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "definitions.h"
#include "wiiuse_internal.h"
#include "dynamics.h"
#include "events.h"
#include "nunchuk.h"
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... | |
void | wiiuse_set_nunchuk_orient_threshold (struct wiimote_t *wm, float threshold) |
Set the orientation event threshold for the nunchuk. More... | |
void | wiiuse_set_nunchuk_accel_threshold (struct wiimote_t *wm, int threshold) |
Set the accelerometer event threshold for the nunchuk. More... | |
Nunchuk expansion device.
void nunchuk_disconnected | ( | struct nunchuk_t * | nc | ) |
void nunchuk_event | ( | struct nunchuk_t * | nc, |
byte * | msg | ||
) |
void wiiuse_set_nunchuk_accel_threshold | ( | struct wiimote_t * | wm, |
int | threshold | ||
) |
Set the accelerometer event threshold for the nunchuk.
wm | Pointer to a wiimote_t structure with a nunchuk attached. |
threshold | The decimal place that should be considered a significant change. |
See wiiuse_set_orient_threshold() for details.
void wiiuse_set_nunchuk_orient_threshold | ( | struct wiimote_t * | wm, |
float | threshold | ||
) |
Set the orientation event threshold for the nunchuk.
wm | Pointer to a wiimote_t structure with a nunchuk attached. |
threshold | The decimal place that should be considered a significant change. |
See wiiuse_set_orient_threshold() for details.