RetroArch
Functions
classic.c File Reference

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"
Include dependency graph for classic.c:

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...
 

Detailed Description

Classic controller expansion device.

Function Documentation

◆ classic_ctrl_disconnected()

void classic_ctrl_disconnected ( struct classic_ctrl_t cc)

The classic controller disconnected.

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

◆ classic_ctrl_event()

void classic_ctrl_event ( struct classic_ctrl_t cc,
ubyte msg 
)

Handle classic controller event.

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

◆ classic_ctrl_handshake()

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.

Parameters
ccA pointer to a classic_ctrl_t structure.
dataThe data read in from the device.
lenThe length of the data block, in bytes.
Returns
Returns 1 if handshake was successful, 0 if not.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ classic_ctrl_pressed_buttons()

static void classic_ctrl_pressed_buttons ( struct classic_ctrl_t cc,
short  now 
)
static

Find what buttons are pressed.

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