Skip to content

Commit

Permalink
Removed the removed buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
kitao committed Nov 30, 2023
1 parent ed230fa commit 8c9f6de
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/pyxel-platform/src/gamepad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ fn controller_button_to_key(button: i32) -> Key {
SDL_CONTROLLER_BUTTON_DPAD_DOWN => GAMEPAD1_BUTTON_DPAD_DOWN,
SDL_CONTROLLER_BUTTON_DPAD_LEFT => GAMEPAD1_BUTTON_DPAD_LEFT,
SDL_CONTROLLER_BUTTON_DPAD_RIGHT => GAMEPAD1_BUTTON_DPAD_RIGHT,
SDL_CONTROLLER_BUTTON_MISC1 => GAMEPAD1_BUTTON_MISC1,
SDL_CONTROLLER_BUTTON_PADDLE1 => GAMEPAD1_BUTTON_PADDLE1,
SDL_CONTROLLER_BUTTON_PADDLE2 => GAMEPAD1_BUTTON_PADDLE2,
SDL_CONTROLLER_BUTTON_PADDLE3 => GAMEPAD1_BUTTON_PADDLE3,
SDL_CONTROLLER_BUTTON_PADDLE4 => GAMEPAD1_BUTTON_PADDLE4,
SDL_CONTROLLER_BUTTON_TOUCHPAD => GAMEPAD1_BUTTON_TOUCHPAD,
_ => KEY_UNKNOWN,
}
}
Expand Down

0 comments on commit 8c9f6de

Please sign in to comment.