mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Fix formatting
This commit is contained in:
committed by
Gymnasiast
parent
999a467b9a
commit
aa5151503a
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user