SimpleOrientationSensor sample

This sample shows how to use the Windows.Devices.Sensors.SimpleOrientationSensor API.

 
 
 
 
 
5 Star
(2)
10,637 times
Add to favorites
4/2/2014
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C++
C#
JavaScript
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" href="/css/scenario2_Polling.css" />
    <script src="/js/scenario2_Polling.js"></script>
</head>
<body>
    <div>
        <p>Performs a single data request to retrieve the current simple orientation sensor
            reading.</p>
        <button class="action" id="scenario2Get">Get</button>
        <br />
        <br />
        Orientation: <a id="readingOutputOrientation">no data</a>
        <br />
    </div>
</body>
</html>