[oden] I can make this actually MATCH

This commit is contained in:
John Doty 2023-07-07 07:34:09 -07:00
parent e0878b4ea6
commit 9d04541875
3 changed files with 13 additions and 4 deletions

View file

@ -122,6 +122,10 @@ impl InputAPI {
ctx.new_fn(move |_ctx: &ContextRef, b: u32| input.btn(b))?,
)?;
}
builder.export("BUTTON_UP", ctx.new_u32(Button::Up)?)?;
builder.export("BUTTON_DOWN", ctx.new_u32(Button::Down)?)?;
builder.export("BUTTON_LEFT", ctx.new_u32(Button::Left)?)?;
builder.export("BUTTON_RIGHT", ctx.new_u32(Button::Right)?)?;
builder.build("input-core")?;
Ok(InputAPI { input })
}