mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +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:
@@ -32,6 +32,23 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void HandleKeyboardShortcut(sint32 key) override
|
||||
{
|
||||
rct_window * w = window_find_by_class(WC_CHANGE_KEYBOARD_SHORTCUT);
|
||||
if (w != NULL) {
|
||||
keyboard_shortcuts_set(key);
|
||||
window_close_by_class(WC_CHANGE_KEYBOARD_SHORTCUT);
|
||||
window_invalidate_by_class(WC_KEYBOARD_SHORTCUT_LIST);
|
||||
} else {
|
||||
keyboard_shortcut_handle(key);
|
||||
}
|
||||
}
|
||||
|
||||
void GetKeyboardMapScroll(const uint8 * keysState, sint32 * x, sint32 * y) override
|
||||
{
|
||||
get_keyboard_map_scroll(keysState, x, y);
|
||||
}
|
||||
};
|
||||
|
||||
IWindowManager * OpenRCT2::Ui::CreateWindowManager()
|
||||
|
||||
Reference in New Issue
Block a user