This commit is contained in:
Nilton Constantino
2026-02-02 13:54:01 +00:00
parent 99d3dc38a1
commit 6732111328
15 changed files with 571 additions and 167 deletions
@@ -1,11 +1,11 @@
declare struct ButtonState(
pub declare struct ButtonState(
pressed: bool,
released: bool,
down: bool,
hold_frames: bounded
)
declare struct Pad(
pub declare struct Pad(
up: ButtonState,
down: ButtonState,
left: ButtonState,
@@ -20,10 +20,6 @@ declare struct Pad(
select: ButtonState
)
declare contract Input host {
pub declare contract Input host {
fn pad(): Pad;
}
fn add(a: int, b: int): int {
return a + b;
}