Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/client
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-02 06:34:43 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-02 06:34:43 +1000
commit15b0e9946049946133c9c932ef23d06a665f63fb (patch)
tree019c61db7b31ede553c9daaab8c1e331e32a5c69 /source/client
parent2c43b505311b9c7f2a0ee2b798cf4c39b2b0d2b7 (diff)
Initial setup of input stuff
Diffstat (limited to 'source/client')
-rw-r--r--source/client/StarClientApplication.cpp2
-rw-r--r--source/client/StarClientApplication.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp
index 562128c..eedb399 100644
--- a/source/client/StarClientApplication.cpp
+++ b/source/client/StarClientApplication.cpp
@@ -167,7 +167,7 @@ void ClientApplication::applicationInit(ApplicationControllerPtr appController)
m_mainMixer->setVolume(0.5);
m_guiContext = make_shared<GuiContext>(m_mainMixer->mixer(), appController);
-
+ m_input = make_shared<Input>();
auto configuration = m_root->configuration();
bool vsync = configuration->get("vsync").toBool();
diff --git a/source/client/StarClientApplication.hpp b/source/client/StarClientApplication.hpp
index 5e577e8..186efaf 100644
--- a/source/client/StarClientApplication.hpp
+++ b/source/client/StarClientApplication.hpp
@@ -11,6 +11,7 @@
#include "StarErrorScreen.hpp"
#include "StarCinematic.hpp"
#include "StarKeyBindings.hpp"
+#include "StarInput.hpp"
#include "StarMainApplication.hpp"
namespace Star {
@@ -74,6 +75,7 @@ private:
// Valid after applicationInit is called
MainMixerPtr m_mainMixer;
GuiContextPtr m_guiContext;
+ InputPtr m_input;
// Valid after renderInit is called the first time
CinematicPtr m_cinematicOverlay;