Fix key modifiers on Alleg4/Windows back-end

This commit is contained in:
David Capello 2016-04-12 11:33:48 -03:00
parent 9d3195c718
commit 44fadbc275

View File

@ -229,6 +229,7 @@ void error_message(const char* msg)
bool is_key_pressed(KeyScancode scancode)
{
#ifdef ALLEGRO_UNIX
if (scancode == kKeyLShift || scancode == kKeyRShift) {
return key_shifts & KB_SHIFT_FLAG;
}
@ -238,6 +239,7 @@ bool is_key_pressed(KeyScancode scancode)
else if (scancode == kKeyAlt) {
return key_shifts & KB_ALT_FLAG;
}
#endif
return key[scancode] ? true: false;
}