From dfa9403efa208e43089828e77962b2a23d3883cd Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 15 Jun 2024 23:38:52 +0200 Subject: use popups.hide_last() for gamepad close button --- src/app/js/gamepad.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } } -- cgit v1.2.3