38 #ifndef DYNAMICS_H_INCLUDED 39 #define DYNAMICS_H_INCLUDED 53 void apply_smoothing(
struct accel_t *ac,
struct orient_t *orient,
int type);
void calc_joystick_state(struct joystick_t *js, float x, float y)
Calculate the angle and magnitude of a joystick.
Definition: dynamics.c:181
Accelerometer struct.
Definition: wiiuse.h:445
void calculate_orientation(struct accel_t *ac, struct vec3b_t *accel, struct orient_t *orient, int smooth)
Calculate the roll, pitch, yaw.
Definition: dynamics.c:57
General internal wiiuse stuff.
Gravity force struct.
Definition: wiiuse.h:437
Orientation struct.
Definition: wiiuse.h:424
void calculate_gforce(struct accel_t *ac, struct vec3b_t *accel, struct gforce_t *gforce)
Calculate the gravity forces on each axis.
Definition: dynamics.c:142
Unsigned x,y,z byte vector.
Definition: wiiuse.h:406
Joystick calibration structure.
Definition: wiiuse.h:518