1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Add SetKeysPressed() function to UiContext

This commit is contained in:
Richard Jenkins
2017-05-17 16:31:44 +01:00
committed by Gymnasiast
parent 898ffdb8e0
commit 999a467b9a
3 changed files with 9 additions and 3 deletions

View File

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