Apply suggestions from code review

This commit is contained in:
Ted John 2021-02-18 13:35:49 +00:00
parent cacfb8be07
commit b3f6437092
1 changed files with 2 additions and 2 deletions

View File

@ -943,7 +943,7 @@ private:
}
}
InputEvent GetInputEventFromSDLEvent(SDL_Event& e)
InputEvent GetInputEventFromSDLEvent(const SDL_Event& e)
{
InputEvent ie;
ie.DeviceKind = InputDeviceKind::Keyboard;
@ -951,7 +951,7 @@ private:
ie.Button = e.key.keysym.sym;
// Handle dead keys
if (ie.Button == SDLK_SCANCODE_MASK)
if (ie.Button == (SDLK_SCANCODE_MASK | 0))
{
switch (e.key.keysym.scancode)
{