1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Move GetInputManager and GetShortcutManager declarations (#22565)

This commit is contained in:
Aaron van Geffen
2024-08-14 15:15:44 +02:00
committed by GitHub
parent 6e444ea170
commit 0c97e44be0
5 changed files with 10 additions and 5 deletions

View File

@@ -24,9 +24,12 @@ namespace OpenRCT2
namespace OpenRCT2::Ui
{
struct FileDialogDesc;
class InGameConsole;
struct IUiContext;
class InGameConsole;
class InputManager;
class ShortcutManager;
struct IPlatformUiContext
{
virtual ~IPlatformUiContext() = default;
@@ -51,4 +54,6 @@ namespace OpenRCT2::Ui
[[nodiscard]] std::unique_ptr<IPlatformUiContext> CreatePlatformUiContext();
[[nodiscard]] InGameConsole& GetInGameConsole();
[[nodiscard]] InputManager& GetInputManager();
[[nodiscard]] ShortcutManager& GetShortcutManager();
} // namespace OpenRCT2::Ui

View File

@@ -13,6 +13,7 @@
#include "ride/VehicleSounds.h"
#include "windows/Window.h"
#include <openrct2-ui/UiContext.h>
#include <openrct2-ui/input/InputManager.h>
#include <openrct2-ui/input/MouseInput.h>
#include <openrct2-ui/input/ShortcutManager.h>

View File

@@ -147,7 +147,4 @@ namespace OpenRCT2::Ui
static std::string_view GetLegacyShortcutId(size_t index);
};
InputManager& GetInputManager();
ShortcutManager& GetShortcutManager();
} // namespace OpenRCT2::Ui

View File

@@ -13,6 +13,7 @@
# include "../interface/Viewport.h"
# include <openrct2-ui/UiContext.h>
# include <openrct2-ui/input/ShortcutManager.h>
# include <openrct2/Input.h>
# include <openrct2/world/Map.h>

View File

@@ -7,10 +7,11 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "../input/ShortcutManager.h"
#include "Window.h"
#include <algorithm>
#include <openrct2-ui/UiContext.h>
#include <openrct2-ui/input/ShortcutManager.h>
#include <openrct2-ui/interface/Widget.h>
#include <openrct2/drawing/Drawing.h>
#include <openrct2/localisation/Formatter.h>