1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix formatting

This commit is contained in:
Richard Jenkins
2017-05-17 16:36:53 +01:00
committed by Gymnasiast
parent 999a467b9a
commit aa5151503a
3 changed files with 7 additions and 7 deletions

View File

@@ -112,7 +112,7 @@ void TextComposition::HandleMessage(const SDL_Event * e)
key = SDLK_RETURN;
}
GetContext()->GetUiContext()->SetKeysPressed(key, e->key.keysym.scancode);
GetContext()->GetUiContext()->SetKeysPressed(key, e->key.keysym.scancode);
// Text input
if (_session.Buffer == nullptr)

View File

@@ -218,11 +218,11 @@ public:
SDL_SetWindowGrab(_window, value ? SDL_TRUE : SDL_FALSE);
}
void SetKeysPressed(uint32 keysym, uint8 scancode) override
{
_lastKeyPressed = keysym;
_keysPressed[scancode] = 1;
}
void SetKeysPressed(uint32 keysym, uint8 scancode) override
{
_lastKeyPressed = keysym;
_keysPressed[scancode] = 1;
}
// Drawing
IDrawingEngine * CreateDrawingEngine(DRAWING_ENGINE_TYPE type) override

View File

@@ -119,7 +119,7 @@ namespace OpenRCT2
virtual void SetCursorTrap(bool value) abstract;
virtual const uint8 * GetKeysState() abstract;
virtual const uint8 * GetKeysPressed() abstract;
virtual void SetKeysPressed(uint32 keysym, uint8 scancode) abstract;
virtual void SetKeysPressed(uint32 keysym, uint8 scancode) abstract;
// Drawing
virtual Drawing::IDrawingEngine * CreateDrawingEngine(Drawing::DRAWING_ENGINE_TYPE type) abstract;