diff --git a/openVulkanoCpp/ExampleApps/CubesExampleApp.cpp b/openVulkanoCpp/ExampleApps/CubesExampleApp.cpp index c0aa813..504fc4d 100644 --- a/openVulkanoCpp/ExampleApps/CubesExampleApp.cpp +++ b/openVulkanoCpp/ExampleApps/CubesExampleApp.cpp @@ -69,7 +69,7 @@ public: GetGraphicsAppManager()->GetRenderer()->SetScene(&scene); - auto input = InputManager::GetInstace(); + auto input = InputManager::GetInstance(); actionForward = input->GetAction("forward"); actionSide = input->GetAction("side"); actionLookUp = input->GetAction("look up"); @@ -97,7 +97,7 @@ public: nodesPool[i].SetMatrix(glm::translate(glm::mat4x4(1), glm::vec3((std::rand() % 10000) / 1000.0f - 5, (std::rand() % 10000) / 1000.0f - 5, (std::rand() % 10000) / 1000.0f - 5))); } - auto input = InputManager::GetInstace(); + auto input = InputManager::GetInstance(); Vector3f_SIMD vec(input->GetAxis(actionSide), 0, -input->GetAxis(actionForward)); if(Utils::length2(vec) > 1.0f) { diff --git a/openVulkanoCpp/Host/GLFW/InputProviderGLFW.cpp b/openVulkanoCpp/Host/GLFW/InputProviderGLFW.cpp index 0a59e57..22c2447 100644 --- a/openVulkanoCpp/Host/GLFW/InputProviderGLFW.cpp +++ b/openVulkanoCpp/Host/GLFW/InputProviderGLFW.cpp @@ -35,8 +35,8 @@ namespace openVulkanoCpp::GLFW keyboard.Init(0, "Keyboard"); mouse.Init(0, "Mouse"); - Input::InputManager::GetInstace()->RegisterInputDevice(&mouse); - Input::InputManager::GetInstace()->RegisterInputDevice(&keyboard); + Input::InputManager::GetInstance()->RegisterInputDevice(&mouse); + Input::InputManager::GetInstance()->RegisterInputDevice(&keyboard); } void InputProviderGLFW::Close() @@ -48,12 +48,12 @@ namespace openVulkanoCpp::GLFW void InputProviderGLFW::OnJoystickConnect(int joystickId) { controllers[joystickId].Init(joystickId); - Input::InputManager::GetInstace()->RegisterInputDevice(&controllers[joystickId]); + Input::InputManager::GetInstance()->RegisterInputDevice(&controllers[joystickId]); } void InputProviderGLFW::OnJoystickDisconnect(int joystickId) { - Input::InputManager::GetInstace()->UnregisterInputDevice(&controllers[joystickId]); + Input::InputManager::GetInstance()->UnregisterInputDevice(&controllers[joystickId]); controllers[joystickId].Close(); } diff --git a/openVulkanoCpp/Input/InputManager.hpp b/openVulkanoCpp/Input/InputManager.hpp index 5414681..f249675 100644 --- a/openVulkanoCpp/Input/InputManager.hpp +++ b/openVulkanoCpp/Input/InputManager.hpp @@ -90,7 +90,7 @@ namespace openVulkanoCpp { InputManager() = default; public: - static InputManager* GetInstace() + static InputManager* GetInstance() { static InputManager* instance = new InputManager(); return instance;