aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app/js/gamepad.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/js/gamepad.js b/src/app/js/gamepad.js
index abe3db5..172c673 100644
--- a/src/app/js/gamepad.js
+++ b/src/app/js/gamepad.js
@@ -1,3 +1,4 @@
+const popups = require("./popups");
const navigate = require("./navigate");
window.addEventListener("gamepadconnected", (e) => {
@@ -160,7 +161,7 @@ setInterval(() => {
case buttons.accept: navigate.select(); break;
- case buttons.cancel: popups.set_all(false); break;
+ case buttons.cancel: popups.hide_last(); break;
}
}
}