mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
Fix Shift/Ctrl/Alt key handling on Linux
On native Linux builds, due to weird key modifier handling, key modifiers often worked backwards. Now modifer key handling is streamlined and is not mode-dependent.
This commit is contained in:
@@ -36,7 +36,5 @@ void launcher_mode::exit()
|
||||
|
||||
void launcher_mode::on_key(const int Key, const int Scancode, const int Action, const int Mods)
|
||||
{
|
||||
Global.shiftState = ( Mods & GLFW_MOD_SHIFT ) ? true : false;
|
||||
Global.ctrlState = ( Mods & GLFW_MOD_CONTROL ) ? true : false;
|
||||
m_userinterface->on_key(Key, Action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user