Fix typo
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user