https://github.com/easierbycode/spriteXtractor/actions/runs/17479398611/artifacts/3932587373
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"tasks": { | |
"dev": "deno run -A --watch=server.ts,static/,games/ server.ts", | |
"start": "deno run -A server.ts", | |
"copy:assets:windows": "powershell -NoProfile -Command \"New-Item -ItemType Directory -Force build/windows | Out-Null; Copy-Item -Recurse -Force static build/windows/static; if (Test-Path games) { Copy-Item -Recurse -Force games build/windows/games }\"", | |
"build:windows": "deno compile --allow-all --target x86_64-pc-windows-msvc --output build/windows/codemonkey-games-launcher.exe server.ts && deno task copy:assets:windows", | |
"run:windows": "build/windows/codemonkey-games-launcher.exe", | |
"build-run:windows": "deno task build:windows && deno task run:windows", | |
"fmt": "deno fmt", | |
"lint": "deno lint", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let prevButtonStates = []; | |
let fullscreenToggled = false; // Flag to ensure fullscreen is toggled only once | |
window.addEventListener("gamepadconnected", (e) => { | |
console.log(`Gamepad ${e.gamepad.index} connected`); | |
prevButtonStates[e.gamepad.index] = []; | |
requestAnimationFrame(pollGamepads); | |
}); | |
function pollGamepads() { |
NewerOlder