Move GetInputManager and GetShortcutManager declarations (#22565)

This commit is contained in:
Aaron van Geffen authored and GitHub committed 2024-08-14 14:15:44 +01:00
1 parent 6e444ea170
commit 0c97e44be0
5 files changed
+10 -5

No files matched your search

+6 -1
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
+1
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>
-3
View File
@@ -147,7 +147,4 @@ namespace OpenRCT2::Ui
static std::string_view GetLegacyShortcutId(size_t index);
};
InputManager& GetInputManager();
ShortcutManager& GetShortcutManager();
} // namespace OpenRCT2::Ui
+1
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>
+2 -1
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>