- fixed: Events were processed as key events without checking their type.

This commit is contained in:
Christoph Oelckers 2019-11-12 20:17:17 +01:00
parent 22ccea8677
commit 0bdec4ea2e

View file

@ -60,7 +60,7 @@ void InputState::AddEvent(const event_t *ev)
case KEY_MOUSE5: mouseSetBit(THUMB2_MOUSE, ev->type == EV_KeyDown); break;
default: break;
}
}
keySetState(ev->data1, ev->type == EV_KeyDown);
if (ev->data2) keySetChar(ev->data2);
}
}