1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Link back shortcut functions

Some of this will be temporary until input and windows move over to libopenrct2ui.
This commit is contained in:
Ted John
2017-06-11 16:31:54 +01:00
parent 524248cfec
commit 7a86fc2cb5
9 changed files with 130 additions and 129 deletions

View File

@@ -659,6 +659,18 @@ extern "C"
return windowManager->OpenWindow(wc);
}
void context_handle_keyboard_shortcut(sint32 key)
{
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
windowManager->HandleKeyboardShortcut(key);
}
void context_get_keyboard_map_scroll(const uint8 * keysState, sint32 * x, sint32 * y)
{
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
windowManager->GetKeyboardMapScroll(keysState, x, y);
}
bool platform_open_common_file_dialog(utf8 * outFilename, file_dialog_desc * desc, size_t outSize)
{
try