RetroArch
Functions
nunchuk.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "dynamics.h"
#include "definitions.h"
#include "wiiuse_internal.h"
#include "nunchuk.h"
#include "io.h"
Include dependency graph for nunchuk.c:

Functions

static void nunchuk_pressed_buttons (struct nunchuk_t *nc, ubyte now)
 Find what buttons are pressed. More...
 
int nunchuk_handshake (struct wiimote_t *wm, struct nunchuk_t *nc, ubyte *data, uword len)
 
void nunchuk_disconnected (struct nunchuk_t *nc)
 The nunchuk disconnected. More...
 
void nunchuk_event (struct nunchuk_t *nc, ubyte *msg)
 Handle nunchuk event. More...
 

Function Documentation

◆ nunchuk_disconnected()

void nunchuk_disconnected ( struct nunchuk_t nc)

The nunchuk disconnected.

Parameters
ncA pointer to a nunchuk_t structure.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nunchuk_event()

void nunchuk_event ( struct nunchuk_t nc,
ubyte msg 
)

Handle nunchuk event.

Parameters
ncA pointer to a nunchuk_t structure.
msgThe message specified in the event packet.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nunchuk_handshake()

int nunchuk_handshake ( struct wiimote_t wm,
struct nunchuk_t nc,
ubyte data,
uword  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nunchuk_pressed_buttons()

static void nunchuk_pressed_buttons ( struct nunchuk_t nc,
ubyte  now 
)
static

Find what buttons are pressed.

Parameters
ncPointer to a nunchuk_t structure.
msgThe message byte specified in the event packet.
Here is the caller graph for this function: