We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8fa312 commit 5b6dc84Copy full SHA for 5b6dc84
gamepad.html
@@ -5,16 +5,6 @@
5
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6
<title>Simple Quadrotor Gamepad Controller</title>
7
<style>
8
- body {
9
- font-family: Arial, sans-serif;
10
- max-width: 600px; /* Increased width to accommodate new column */
11
- margin: 0 auto;
12
- padding: 20px;
13
- }
14
- h1 {
15
- font-size: 1.5em;
16
- margin-bottom: 15px;
17
18
#gamepad-status {
19
padding: 8px;
20
margin-bottom: 15px;
gamepad.js
@@ -27,6 +27,7 @@ class Mapper{
27
if (diff > maxDiff) {
28
maxDiff = diff;
29
this.live_index = i;
30
+ this.invert = (gamepad.axes[i] - this.base_values[i]) < 0;
31
this.base = this.base_values[i];
32
}
33
if (diff > 0.5) {
0 commit comments