Publish Vulpes Preview 15 sources for desktop, Android and Tundra

Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,52 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<title>Test Sensors</title>
<!-- Load up the controller code. -->
<script src="js/physical-events.js"></script>
</head>
<body>
<h3>Acceleration</h3>
<p>acceleration.x: <span id="acceleration-x"></span></p>
<p>acceleration.y: <span id="acceleration-y"></span></p>
<p>acceleration.z: <span id="acceleration-z"></span></p>
<h3>Acceleration Including Gravity</h3>
<p>accelerationIncludingGravity.x:
<span id="acceleration-gravity-x"></span></p>
<p>accelerationIncludingGravity.y:
<span id="acceleration-gravity-y"></span></p>
<p>accelerationIncludingGravity.z:
<span id="acceleration-gravity-z"></span></p>
<h3>Time Between Motion Events</h3>
<p><span id="interval"></span> milliseconds</p>
<h3>Rotation Rate</h3>
<p>rotationRate.alpha: <span id="rot-rate-alpha"></span></p>
<p>rotationRate.beta: <span id="rot-rate-beta"></span></p>
<p>rotationRate.gamma: <span id="rot-rate-gamma"></span></p>
<h3>Orientation</h3>
<p>orientation.alpha: <span id="orientation-alpha"></span></p>
<p>orientation.beta: <span id="orientation-beta"></span></p>
<p>orientation.gamma: <span id="orientation-gamma"></span></p>
<h3>Calibration</h3>
<p>compassneedscalibration: <span id="compassneedscalibration"></span></p>
</body>
</html>

View file

@ -0,0 +1,33 @@
window.addEventListener("devicemotion", function (e) {
if (e.acceleration) {
document.getElementById("acceleration-x").innerHTML = e.acceleration.x
document.getElementById("acceleration-y").innerHTML = e.acceleration.y
document.getElementById("acceleration-z").innerHTML = e.acceleration.z
}
if (e.accelerationIncludingGravity) {
document.getElementById("acceleration-gravity-x").innerHTML = e.accelerationIncludingGravity.x
document.getElementById("acceleration-gravity-y").innerHTML = e.accelerationIncludingGravity.y
document.getElementById("acceleration-gravity-z").innerHTML = e.accelerationIncludingGravity.z
}
document.getElementById("interval").innerHTML = e.interval;
if (e.rotationRate) {
document.getElementById("rot-rate-alpha").innerHTML = e.rotationRate.alpha
document.getElementById("rot-rate-beta").innerHTML = e.rotationRate.beta
document.getElementById("rot-rate-gamma").innerHTML = e.rotationRate.gamma
}
}, false);
window.addEventListener("deviceorientation", function (e) {
if (e) {
document.getElementById("orientation-alpha").innerHTML = e.alpha
document.getElementById("orientation-beta").innerHTML = e.beta
document.getElementById("orientation-gamma").innerHTML = e.gamma
}
}, false);
window.addEventListener("compassneedscalibration", function (e) {
document.getElementById("compassneedscalibration").innerHTML = "true";
}, false);

View file

@ -0,0 +1,12 @@
{
"name": "Test Sensors",
"description": "Tests basic device sensors includes accelerometer and gyroscope",
"launch_path": "/index.html",
"developer": {
"name": "dougt",
"url": "http://www.mozilla.org"
},
"icons": {
"128": "/style/icons/sensor.png"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB