hidjoystick: Added check for HID
parent
33c5d61f82
commit
b45caf8e02
|
|
@ -1518,7 +1518,7 @@
|
|||
"shortName": "Joystick",
|
||||
"icon": "app.png",
|
||||
"version":"0.01",
|
||||
"description": "Emulate a 2 axis/5 button Joystick using the accelerometer as stick input and buttons 1-3, touch left and touch right.",
|
||||
"description": "Emulate a 2 axis/5 button Joystick using the accelerometer as stick input and buttons 1-3, touch left as button 4 and touch right as button 5.",
|
||||
"tags": "bluetooth",
|
||||
"storage": [
|
||||
{"name":"hidjoystick.app.js","url":"app.js"},
|
||||
|
|
|
|||
|
|
@ -57,4 +57,9 @@ function update() {
|
|||
}
|
||||
|
||||
drawApp();
|
||||
setInterval(update, 100); // 10 Hz
|
||||
if (settings.HID) {
|
||||
setInterval(update, 100); // 10 Hz
|
||||
} else {
|
||||
E.showMessage('HID disabled');
|
||||
setTimeout(load, 1000);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue