Learning Windows 8 Game Development by 2013

Learning Windows 8 Game Development by 2013

Author:2013
Language: eng
Format: epub
Publisher: Packt Publishing


This is the class declaration for the InclinometerTrigger. Here we need to define an enumeration to allow us to specify which rotation axis to check, and we will also store references to the inclinometer and the data defining the trigger condition.

We will run the following code inside the constructor:

// Inclinometer is in the Windows::Devices::Sensors namespace _inclinometer = Inclinometer::GetDefault(); if (_inclinometer != nullptr) _inclinometer->ReportInterval = _inclinometer->MinimumReportInterval;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.