WiiDuktape/source/game.js

21 lines
322 B
JavaScript
Raw Normal View History

const PAD_BUTTON_START = 0x1000;
const PAD_BUTTON_A = 0x0100;
function start() {
}
function update() {
const pressed = wii.pad.buttons_down();
if (pressed & PAD_BUTTON_START) {
wii.print("exiting from js");
wii.exit();
}
if (pressed & PAD_BUTTON_A) {
wii.print("a pressed");
}
wii.grrlib.fill_screen();
}