mirror of https://github.com/OpenRCT2/OpenRCT2.git
Apply suggestions from code review
This commit is contained in:
parent
cacfb8be07
commit
b3f6437092
|
@ -943,7 +943,7 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
InputEvent GetInputEventFromSDLEvent(SDL_Event& e)
|
InputEvent GetInputEventFromSDLEvent(const SDL_Event& e)
|
||||||
{
|
{
|
||||||
InputEvent ie;
|
InputEvent ie;
|
||||||
ie.DeviceKind = InputDeviceKind::Keyboard;
|
ie.DeviceKind = InputDeviceKind::Keyboard;
|
||||||
|
@ -951,7 +951,7 @@ private:
|
||||||
ie.Button = e.key.keysym.sym;
|
ie.Button = e.key.keysym.sym;
|
||||||
|
|
||||||
// Handle dead keys
|
// Handle dead keys
|
||||||
if (ie.Button == SDLK_SCANCODE_MASK)
|
if (ie.Button == (SDLK_SCANCODE_MASK | 0))
|
||||||
{
|
{
|
||||||
switch (e.key.keysym.scancode)
|
switch (e.key.keysym.scancode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue