RetroArch
|
Classic controller expansion device. More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "definitions.h"
#include "wiiuse_internal.h"
#include "dynamics.h"
#include "events.h"
#include "classic.h"
#include "io.h"
Functions | |
static void | classic_ctrl_pressed_buttons (struct classic_ctrl_t *cc, short now) |
Find what buttons are pressed. More... | |
int | classic_ctrl_handshake (struct wiimote_t *wm, struct classic_ctrl_t *cc, ubyte *data, uword len) |
Handle the handshake data from the classic controller. More... | |
void | classic_ctrl_disconnected (struct classic_ctrl_t *cc) |
The classic controller disconnected. More... | |
void | classic_ctrl_event (struct classic_ctrl_t *cc, ubyte *msg) |
Handle classic controller event. More... | |
Classic controller expansion device.
void classic_ctrl_disconnected | ( | struct classic_ctrl_t * | cc | ) |
The classic controller disconnected.
cc | A pointer to a classic_ctrl_t structure. |
void classic_ctrl_event | ( | struct classic_ctrl_t * | cc, |
ubyte * | msg | ||
) |
Handle classic controller event.
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, | ||
ubyte * | data, | ||
uword | len | ||
) |
Handle the handshake data from the classic controller.
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. |
|
static |
Find what buttons are pressed.
cc | A pointer to a classic_ctrl_t structure. |
msg | The message byte specified in the event packet. |