xbmc
ir.h
Go to the documentation of this file.
1 /*
2  * wiiuse
3  *
4  * Written By:
5  * Michael Laforest < para >
6  * Email: < thepara (--AT--) g m a i l [--DOT--] com >
7  *
8  * Copyright 2006-2007
9  *
10  * This file is part of wiiuse.
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <http://www.gnu.org/licenses/>.
24  *
25  * $Header$
26  *
27  */
28 
34 #pragma once
35 
36 #include "wiiuse_internal.h"
37 
38 #define WII_VRES_X 560
39 #define WII_VRES_Y 340
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 void calculate_basic_ir(struct wiimote_t* wm, byte* data);
46 void calculate_extended_ir(struct wiimote_t* wm, byte* data);
47 float calc_yaw(struct ir_t* ir);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
Wiimote structure.
Definition: wiiuse.h:531
General internal wiiuse stuff.
void calculate_extended_ir(struct wiimote_t *wm, byte *data)
Calculate the data from the IR spots.
Definition: ir.c:359
void calculate_basic_ir(struct wiimote_t *wm, byte *data)
Calculate the data from the IR spots.
Definition: ir.c:323
IR struct.
Definition: wiiuse.h:350
float calc_yaw(struct ir_t *ir)
Calculate yaw given the IR data.
Definition: ir.c:741