mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Fix shift, ctrl and alt key handling on windows
This commit is contained in:
@@ -741,12 +741,14 @@ eu07_application::on_key( int const Key, int const Scancode, int const Action, i
|
||||
|
||||
if( m_modestack.empty() ) { return; }
|
||||
|
||||
#ifdef __unix__
|
||||
if (Key == GLFW_KEY_LEFT_SHIFT || Key == GLFW_KEY_RIGHT_SHIFT)
|
||||
Global.shiftState = Action == GLFW_PRESS;
|
||||
if (Key == GLFW_KEY_LEFT_CONTROL || Key == GLFW_KEY_RIGHT_CONTROL)
|
||||
Global.ctrlState = Action == GLFW_PRESS;
|
||||
if (Key == GLFW_KEY_LEFT_ALT || Key == GLFW_KEY_RIGHT_ALT)
|
||||
Global.altState = Action == GLFW_PRESS;
|
||||
#endif
|
||||
|
||||
m_modes[ m_modestack.top() ]->on_key( Key, Scancode, Action, Mods );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user