SimpleOrientationSensor sample

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

 
 
 
 
 
5 Star
(2)
10,631 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/scenario1_DataEvents.css" />
    <script src="/js/scenario1_DataEvents.js"></script>
</head>
<body>
    <div>
        <p>Registers an event listener for simple orientation sensor data and displays the
            rotation as it is reported.</p>
        <button class="action" id="scenario1Open">Enable</button>
        <button class="action secondary" id="scenario1Revoke">Disable</button>
        <br />
        <br />
        Orientation: <a id="eventOutputOrientation">no data</a>
        <br />
    </div>
</body>
</html>