buttons y and x
This commit is contained in:
parent
a704d04a2c
commit
5d47366ea9
1 changed files with 2 additions and 0 deletions
|
|
@ -127,6 +127,8 @@ pub fn fetch_events(state: &mut State) -> Input {
|
||||||
|
|
||||||
input.gamepad1.buttons.a = is_key_down(KeyCode::Z);
|
input.gamepad1.buttons.a = is_key_down(KeyCode::Z);
|
||||||
input.gamepad1.buttons.b = is_key_down(KeyCode::X);
|
input.gamepad1.buttons.b = is_key_down(KeyCode::X);
|
||||||
|
input.gamepad1.buttons.y = is_key_down(KeyCode::S);
|
||||||
|
input.gamepad1.buttons.x = is_key_down(KeyCode::A);
|
||||||
|
|
||||||
// dpad
|
// dpad
|
||||||
input.gamepad1.dpad.left = is_key_down(KeyCode::Left);
|
input.gamepad1.dpad.left = is_key_down(KeyCode::Left);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue