mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 17:09:19 +02:00
Remember which modifiers were present on key press and use them on key release
This fixes an issue where a triggered command stays indefinitely active when the user releases the modifier before releasing the triggering key.
This commit is contained in:
@@ -106,6 +106,7 @@ private:
|
||||
// members
|
||||
user_command m_command { user_command::none }; // last, if any, issued command
|
||||
usercommand_map m_bindings;
|
||||
std::unordered_map<int, int> m_modsforkeys; // modifiers that were used with the active keys
|
||||
command_relay m_relay;
|
||||
bindings_cache m_bindingscache;
|
||||
glm::vec2 m_movementhorizontal { 0.f };
|
||||
|
||||
Reference in New Issue
Block a user