开发者

Accessing the gyro in the wiimotion plus using Brian Peek's Wiimotelib 1.8 beta

I am sort of confused on how to access gyroscop开发者_JS百科e data from the wiimotion plus using the wiimote lib beta 1.8. I know for the accelerometer you would do something like this:

Wiimote.WiimoteState.AccelState.Values.X;

For the wiimotion plus, I first need to initialise it by:

Wiimote.InitializeMotionPlus();

After that, I am unsure on how to access the gyro values.

Any help is greatly appreciated.


I made a stupid mistake. This is how it is done:

double x = Wiimote.WiimoteState.MotionPlusState.Values.X;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜