Fix #476 directly
This commit is contained in:
@@ -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;
|
||||
}
|
@@ -26,6 +26,7 @@ public:
|
||||
bool isLeftPressed() const;
|
||||
bool isRightPressed() const;
|
||||
bool handleModifier(const sf::Event& evt);
|
||||
void flushModifiers();
|
||||
};
|
||||
|
||||
extern keymods_t kb;
|
||||
|
Reference in New Issue
Block a user