Skip to content

Commit

Permalink
Jump with left trigger so you can keep your finger on the R stick
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvaka committed Mar 16, 2024
1 parent f3f0522 commit a342521
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input_conf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ void Input::MapGameKeys()
};
action_mapping[(int)GameKeys::JUMP] = [](int p)
{
return GamePad::IsButtonPressed(p, SDL_CONTROLLER_BUTTON_A) || (
return GamePad::IsButtonPressed(p, SDL_CONTROLLER_BUTTON_A) ||
GamePad::IsButtonPressed(p, SDL_CONTROLLER_BUTTON_LEFTSHOULDER) || (
(p == keyboard_player_id) && (
Keyboard::IsKeyPressed(SDL_SCANCODE_Z) ||
Keyboard::IsKeyPressed(SDL_SCANCODE_P) ||
Expand Down

0 comments on commit a342521

Please sign in to comment.