Addmwiimotecomponent1 protected override void

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: omponents.Add(mWiimoteComponent1); } protected override void Update(GameTime gameTime) { UpdateWiimoteState(); base.Update(gameTime); } Spring 2009 CAP6938 – 3D User Interfaces for Games and Virtual Reality ©Joseph J. LaViola Jr. Example Code – Bespoke XNA 3DUI Framework – II private void UpdateWiimoteState() { mCurrentWiimoteState = mWiimoteComponent1.Wiimote.WiimoteState; if (mWiimoteComponent1.WasButonPressedThisFrame(Bespoke.Common.Wiimote.Buttons.B)) { // Start collecting a new set of points. mCurrentWiimoteSamplePoints = new WiimotePointCollection(); mHelpLabel = "Release B Button to End Gesture"; } e...
View Full Document

This note was uploaded on 06/13/2011 for the course CAP 6938 taught by Professor Staff during the Spring '08 term at University of Central Florida.

Ask a homework question - tutors are online