Skip to content

Commit

Permalink
Fix input state not being correctly reset after using a gamepad analog
Browse files Browse the repository at this point in the history
control
  • Loading branch information
dorkster committed Aug 14, 2023
1 parent c1331a2 commit 76b4c72
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Engine fixes:
* Fix memory leak when a power's animation property was redefined.
* Display min/max damage and absorb stats on single lines in the Character menu
* Show power base damage type in tooltips if no damage modifier is set
* Fix input state not being correctly reset after using a gamepad analog control

Game updates:
* Limited the number of "unique" items that can drop from a boss to 1 per kill.
Expand Down
3 changes: 0 additions & 3 deletions src/SDLInputState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ void SDLInputState::handle() {
for (int key=0; key<KEY_COUNT; key++) {
for (size_t i = 0; i < binding[key].size(); ++i) {
if (binding[key][i].type == InputBind::KEY && binding[key][i].bind == event.key.keysym.scancode) {
pressing[key] = true;
un_press[key] = true;
}
}
Expand Down Expand Up @@ -550,8 +549,6 @@ void SDLInputState::handle() {
}
else if (pressing[key] && mode == MODE_JOYSTICK) {
un_press[key] = true;
pressing[key] = false;
lock[key] = false;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FLARE. If not, see https://www.gnu.org/licenses/

#include <SDL.h>

Version VersionInfo::ENGINE(1, 14, 20);
Version VersionInfo::ENGINE(1, 14, 21);
Version VersionInfo::MIN(0, 0, 0);
Version VersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);

Expand Down

0 comments on commit 76b4c72

Please sign in to comment.