Fix #476 directly

This commit is contained in:
2024-11-21 11:52:15 -06:00
committed by Celtic Minstrel
parent b2c0af3d48
commit 6d6f25f326
3 changed files with 11 additions and 0 deletions

View File

@@ -91,3 +91,10 @@ bool keymods_t::handleModifier(const sf::Event& evt) {
}
return true;
}
void keymods_t::flushModifiers() {
alt = false;
ctrl = false,
shift = false,
meta = false;
}

View File

@@ -26,6 +26,7 @@ public:
bool isLeftPressed() const;
bool isRightPressed() const;
bool handleModifier(const sf::Event& evt);
void flushModifiers();
};
extern keymods_t kb;