RetroArch
dynamics.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: /lvm/shared/ds/ds/cvs/devkitpro-cvsbackup/libogc/wiiuse/dynamics.h,v 1.2 2008-11-14 13:34:57 shagkur Exp $
26  *
27  */
28 
38 /* This source as presented is a modified version of original wiiuse for use
39  * with RetroArch, and must not be confused with the original software. */
40 
41 #ifndef DYNAMICS_H_INCLUDED
42 #define DYNAMICS_H_INCLUDED
43 
44 #include "wiiuse_internal.h"
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 void calculate_orientation(struct accel_t* ac, struct vec3w_t* accel, struct orient_t* orient, int smooth);
51 void calculate_gforce(struct accel_t* ac, struct vec3w_t* accel, struct gforce_t* gforce);
52 void calc_joystick_state(struct joystick_t* js, float x, float y);
53 void apply_smoothing(struct accel_t* ac, struct orient_t* orient, int type);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif // DYNAMICS_H_INCLUDED
void calculate_gforce(struct accel_t *ac, struct vec3w_t *accel, struct gforce_t *gforce)
Calculate the gravity forces on each axis.
Definition: dynamics.c:128
Accelerometer struct. For any device with an accelerometer.
Definition: wiiuse.h:326
void calculate_orientation(struct accel_t *ac, struct vec3w_t *accel, struct orient_t *orient, int smooth)
Calculate the roll, pitch, yaw.
Definition: dynamics.c:63
Joystick calibration structure.
Definition: wiiuse.h:423
Gravity force struct.
Definition: wiiuse.h:317
Definition: wiiuse.h:283
GLenum type
Definition: glext.h:6233
void calc_joystick_state(struct joystick_t *js, float x, float y)
Calculate the angle and magnitude of a joystick.
Definition: dynamics.c:164
General internal wiiuse stuff.
GLint GLint GLint GLint GLint GLint y
Definition: glext.h:6295
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
Orientation struct.
Definition: wiiuse.h:303
void apply_smoothing(struct accel_t *ac, struct orient_t *orient, int type)
Definition: dynamics.c:203