|
wiiuse
|
Nunchuk expansion device. More...
#include "nunchuk.h"#include "dynamics.h"#include "events.h"#include <stdlib.h>#include <string.h>
Macros | |
| #define | HANDSHAKE_BYTES_USED 14 |
| Handle the handshake data from the nunchuk. More... | |
Functions | |
| int | nunchuk_handshake (struct wiimote_t *wm, struct nunchuk_t *nc, byte *data, unsigned short len) |
| 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 | nunchuk_pressed_buttons (struct nunchuk_t *nc, byte now) |
| Find what buttons are pressed. 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.
| #define HANDSHAKE_BYTES_USED 14 |
Handle the handshake data from the nunchuk.
| 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. |
1.8.13