diff options
author | 0neGal <mail@0negal.com> | 2024-06-15 23:38:52 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-06-15 23:39:37 +0200 |
commit | dfa9403efa208e43089828e77962b2a23d3883cd (patch) | |
tree | 79fd9031c1c968091e3d5c97c8857439d002e781 | |
parent | 938362cc27682f976cfbe16d7c4f898485e893c4 (diff) | |
download | Viper-dfa9403efa208e43089828e77962b2a23d3883cd.tar.gz Viper-dfa9403efa208e43089828e77962b2a23d3883cd.zip |
use popups.hide_last() for gamepad close button
-rw-r--r-- | src/app/js/gamepad.js | 3 |
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; } } } |