[giimote] r206 committed - Fixed a bug where wm_nunchuck_get_accel_x returned the x value for the...

4 views
Skip to first unread message

gii...@googlecode.com

unread,
Dec 8, 2009, 10:49:36 AM12/8/09
to gii...@googlegroups.com
Revision: 206
Author: leif902
Date: Tue Dec 8 07:48:51 2009
Log: Fixed a bug where wm_nunchuck_get_accel_x returned the x value for the
Wii Remote instead of the Nunchuck.
http://code.google.com/p/giimote/source/detail?r=206

Modified:
/trunk/GiiMote/Nunchuck.h

=======================================
--- /trunk/GiiMote/Nunchuck.h Sun Nov 9 14:51:04 2008
+++ /trunk/GiiMote/Nunchuck.h Tue Dec 8 07:48:51 2009
@@ -22,7 +22,7 @@
/// <returns>Normalized acceleration</returns>
double wm_nunchuck_get_accel_x()
{
- return (
wm_calc_accel(GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->AccelState.Values.X,
3) );
+ return (
wm_calc_accel(GiiMote::gm->wc[GiiMote::gm->wmIndex]->WiimoteState->NunchukState.AccelState.Values.X,
3) );
}

/// <summary>Normalized accelerometer data</summary>
Reply all
Reply to author
Forward
0 new messages