RetroArch
ir.h
Go to the documentation of this file.
1 /* This source as presented is a modified version of original wiiuse for use
2  * with RetroArch, and must not be confused with the original software. */
3 
4 #ifndef __IR_H__
5 #define __IR_H__
6 
7 #include "wiiuse_internal.h"
8 
9 #define WII_VRES_X 560
10 #define WII_VRES_Y 340
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 void calculate_basic_ir(struct wiimote_t* wm, ubyte* data);
17 void calculate_extended_ir(struct wiimote_t* wm, ubyte* data);
18 float calc_yaw(struct ir_t* ir);
19 void interpret_ir_data(struct ir_t* ir, struct orient_t *orient);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif
void interpret_ir_data(struct ir_t *ir, struct orient_t *orient)
Interpret IR data into more user friendly variables.
Definition: ir.c:769
Wiimote structure.
Definition: wiiuse.h:594
Definition: ibxm.h:9
void calculate_extended_ir(struct wiimote_t *wm, ubyte *data)
Calculate the data from the IR spots. Extended IR mode.
Definition: ir.c:408
IR struct. Hold all data related to the IR tracking.
Definition: wiiuse.h:377
General internal wiiuse stuff.
float calc_yaw(struct ir_t *ir)
Calculate yaw given the IR data.
Definition: ir.c:829
unsigned char ubyte
Definition: wiiuse.h:187
Orientation struct.
Definition: wiiuse.h:303
void calculate_basic_ir(struct wiimote_t *wm, ubyte *data)
Calculate the data from the IR spots. Basic IR mode.
Definition: ir.c:369