mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 03:09:18 +02:00
Fix shift, ctrl and alt key handling on windows
This commit is contained in:
@@ -34,6 +34,11 @@ void launcher_mode::exit()
|
||||
|
||||
void launcher_mode::on_key(const int Key, const int Scancode, const int Action, const int Mods)
|
||||
{
|
||||
#ifndef __unix__
|
||||
Global.shiftState = (Mods & GLFW_MOD_SHIFT) ? true : false;
|
||||
Global.ctrlState = (Mods & GLFW_MOD_CONTROL) ? true : false;
|
||||
Global.altState = (Mods & GLFW_MOD_ALT) ? true : false;
|
||||
#endif
|
||||
m_userinterface->on_key(Key, Action);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user