Skip to content

Commit

Permalink
input: fix holding down up or down to scroll the passport faster
Browse files Browse the repository at this point in the history
  • Loading branch information
walkawayy committed Jun 23, 2023
1 parent 493287d commit b7eb0c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [Unreleased](https://github.com/rr-/Tomb1Main/compare/stable...develop) - ××××-××-××
- fixed the ape not performing the vault animation when climbing (#880)
- fixed holding down up or down to scroll the passport faster (#883, regression from 2.14)

## [2.15](https://github.com/rr-/Tomb1Main/compare/2.14...2.15) - 2023-06-08
- added an option to enable TR2+ jump-twist and somersault animations (#88)
Expand Down
2 changes: 2 additions & 0 deletions src/game/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ static INPUT_STATE Input_GetDebounced(INPUT_STATE input)
m_HoldBack = 0;
} else if (input.back && ++m_HoldBack >= DELAY_FRAMES + HOLD_FRAMES) {
result.back = 1;
result.menu_down = 1;
m_HoldBack = DELAY_FRAMES;
}

if (!input.forward || input.back) {
m_HoldForward = 0;
} else if (input.forward && ++m_HoldForward >= DELAY_FRAMES + HOLD_FRAMES) {
result.forward = 1;
result.menu_up = 1;
m_HoldForward = DELAY_FRAMES;
}

Expand Down

0 comments on commit b7eb0c2

Please sign in to comment.