forked from rosebudai/OpenRCT2-Web
Move GetInputManager and GetShortcutManager declarations (#22565)
This commit is contained in:
1 parent
6e444ea170
commit
0c97e44be0
5 files changed
+10
-5
No files matched your search
@@ -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
|
||||
@@ -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>
|
||||
|
||||
@@ -147,7 +147,4 @@ namespace OpenRCT2::Ui
|
||||
|
||||
static std::string_view GetLegacyShortcutId(size_t index);
|
||||
};
|
||||
|
||||
InputManager& GetInputManager();
|
||||
ShortcutManager& GetShortcutManager();
|
||||
} // namespace OpenRCT2::Ui
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user