Added full-screen toggle option in start menu.

- Added 'toggle_full_screen' key binding to json file.
- Implemented full-screen functionality in rats.py.
This commit is contained in:
2025-01-04 16:11:50 +01:00
parent d31de92758
commit 89812d3ed8
5 changed files with 51 additions and 1 deletions
+35
View File
@@ -0,0 +1,35 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM test with XHR</title>
</head>
<body>
<script>
const importObject = {
my_namespace: {
imported_func: arg => {
console.log(arg);
}
}
};
const request = new XMLHttpRequest();
request.open("GET", "rats.wasm");
request.responseType = "arraybuffer";
request.send();
request.onload = () => {
const bytes = request.response;
WebAssembly.instantiate(bytes, importObject)
.then(obj => {
obj.instance.exports.exported_func();
});
};
</script>
</body>
</html>