[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
|
|
@ -202,10 +202,10 @@ export const Key = {
|
|||
|
||||
// NOTE: This must match the definition in input.rs.
|
||||
export const Button = {
|
||||
Up: 0,
|
||||
Down: 1,
|
||||
Left: 2,
|
||||
Right: 3,
|
||||
Up: core.BUTTON_UP,
|
||||
Down: core.BUTTON_DOWN,
|
||||
Left: core.BUTTON_LEFT,
|
||||
Right: core.BUTTON_RIGHT,
|
||||
} as const;
|
||||
type Button = (typeof Button)[keyof typeof Button];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue