RetroArch
Macros | Functions
ir.h File Reference
#include "wiiuse_internal.h"
Include dependency graph for ir.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WII_VRES_X   560
 
#define WII_VRES_Y   340
 

Functions

void calculate_basic_ir (struct wiimote_t *wm, ubyte *data)
 Calculate the data from the IR spots. Basic IR mode. More...
 
void calculate_extended_ir (struct wiimote_t *wm, ubyte *data)
 Calculate the data from the IR spots. Extended IR mode. More...
 
float calc_yaw (struct ir_t *ir)
 Calculate yaw given the IR data. More...
 
void interpret_ir_data (struct ir_t *ir, struct orient_t *orient)
 Interpret IR data into more user friendly variables. More...
 

Macro Definition Documentation

◆ WII_VRES_X

#define WII_VRES_X   560

◆ WII_VRES_Y

#define WII_VRES_Y   340

Function Documentation

◆ calc_yaw()

float calc_yaw ( struct ir_t ir)

Calculate yaw given the IR data.

Parameters
irIR data structure.
Here is the caller graph for this function:

◆ calculate_basic_ir()

void calculate_basic_ir ( struct wiimote_t wm,
ubyte data 
)

Calculate the data from the IR spots. Basic IR mode.

Parameters
wmPointer to a wiimote_t structure.
dataData returned by the wiimote for the IR spots.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_extended_ir()

void calculate_extended_ir ( struct wiimote_t wm,
ubyte data 
)

Calculate the data from the IR spots. Extended IR mode.

Parameters
wmPointer to a wiimote_t structure.
dataData returned by the wiimote for the IR spots.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ interpret_ir_data()

void interpret_ir_data ( struct ir_t ir,
struct orient_t orient 
)

Interpret IR data into more user friendly variables.

Parameters
irPointer to an ir_t structure.
orientPointer to an orient_t structure.
Here is the call graph for this function:
Here is the caller graph for this function: