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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user