Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarInput.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-02-09 23:46:51 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-02-09 23:46:51 +1100
commit9c35c872179def43bf3637d6b731308a2baf7371 (patch)
treea11764eda32534caefeb2c2e1197817cdc7eb8b8 /source/game/StarInput.hpp
parent5a29560e7576203fa3251d9b77ceda876d7af0ae (diff)
input: do a full clear of states when reloading
should fix hold actions getting stuck
Diffstat (limited to 'source/game/StarInput.hpp')
-rw-r--r--source/game/StarInput.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarInput.hpp b/source/game/StarInput.hpp
index 90a1e05..f13885c 100644
--- a/source/game/StarInput.hpp
+++ b/source/game/StarInput.hpp
@@ -146,7 +146,7 @@ public:
List<std::pair<InputEvent, bool>> const& inputEventsThisFrame() const;
// Clears input state. Should be done at the very start or end of the client loop.
- void reset();
+ void reset(bool clear = false);
void update();