[oden] I can make this actually MATCH
This commit is contained in:
parent
e0878b4ea6
commit
9d04541875
3 changed files with 13 additions and 4 deletions
|
|
@ -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 })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue