patch to make enabling 64B L2 cache optional (tueidj)
[libogc.git] / wiiuse / dynamics.h
blobefca73839b1af0d67271a887f66e485ca5da946d
1 /*
2 * wiiuse
4 * Written By:
5 * Michael Laforest < para >
6 * Email: < thepara (--AT--) g m a i l [--DOT--] com >
8 * Copyright 2006-2007
10 * This file is part of wiiuse.
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.
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.
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/>.
25 * $Header: /lvm/shared/ds/ds/cvs/devkitpro-cvsbackup/libogc/wiiuse/dynamics.h,v 1.2 2008-11-14 13:34:57 shagkur Exp $
29 /**
30 * @file
31 * @brief Handles the dynamics of the wiimote.
33 * The file includes functions that handle the dynamics
34 * of the wiimote. Such dynamics include orientation and
35 * motion sensing.
38 #ifndef DYNAMICS_H_INCLUDED
39 #define DYNAMICS_H_INCLUDED
41 #include "wiiuse_internal.h"
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
47 void calculate_orientation(struct accel_t* ac, struct vec3w_t* accel, struct orient_t* orient, int smooth);
48 void calculate_gforce(struct accel_t* ac, struct vec3w_t* accel, struct gforce_t* gforce);
49 void calc_joystick_state(struct joystick_t* js, float x, float y);
50 void calc_balanceboard_state(struct wii_board_t *wb);
51 void apply_smoothing(struct accel_t* ac, struct orient_t* orient, int type);
53 #ifdef __cplusplus
55 #endif
57 #endif // DYNAMICS_H_INCLUDED