2024-06-19 07:39:01 +00:00
|
|
|
const PAD_BUTTON_START = 0x1000;
|
|
|
|
const PAD_BUTTON_A = 0x0100;
|
|
|
|
|
2024-06-20 04:08:16 +00:00
|
|
|
function start() {
|
|
|
|
}
|
2024-06-19 07:39:01 +00:00
|
|
|
|
2024-06-20 04:08:16 +00:00
|
|
|
function update() {
|
2024-06-19 07:39:01 +00:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
|
2024-06-20 04:08:16 +00:00
|
|
|
wii.grrlib.fill_screen();
|
2024-06-19 07:39:01 +00:00
|
|
|
}
|