diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-02 06:34:43 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-02 06:34:43 +1000 |
commit | 15b0e9946049946133c9c932ef23d06a665f63fb (patch) | |
tree | 019c61db7b31ede553c9daaab8c1e331e32a5c69 /source/client | |
parent | 2c43b505311b9c7f2a0ee2b798cf4c39b2b0d2b7 (diff) |
Initial setup of input stuff
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/StarClientApplication.cpp | 2 | ||||
-rw-r--r-- | source/client/StarClientApplication.hpp | 2 |
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; |