mirror of
https://github.com/danbulant/console-hub
synced 2026-05-25 13:02:28 +00:00
18 lines
No EOL
465 B
JavaScript
18 lines
No EOL
465 B
JavaScript
const utils = require("../../utils");
|
|
const gui = require("./gui");
|
|
const Gamepad = require("../../gamepad/gamepad");
|
|
const gamepad = new Gamepad;
|
|
const connected = require("./connected");
|
|
|
|
function welcome(){
|
|
gui.showTitleInMiddle("Welcome to Console-hub");
|
|
gui.showDescriptionInMiddle("Press home button to start");
|
|
|
|
gamepad.on("press", "vendor", ()=>{
|
|
gamepad.off('press', 'vendor');
|
|
|
|
connected();
|
|
});
|
|
}
|
|
|
|
module.exports = welcome; |