mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 10:40:39 +01:00
Qt: Add option to pause when controller is disconnected
This commit is contained in:
1 parent
b9d7b63b32
commit
f084e76f36
14 files changed
+135
-78
No files matched your search
@@ -1199,7 +1199,7 @@ void InputManager::UpdatePointerRelativeDelta(u32 index, InputPointerAxis axis,
|
||||
ImGuiManager::UpdateMousePosition(s_host_pointer_positions[0][0], s_host_pointer_positions[0][1]);
|
||||
}
|
||||
|
||||
void InputManager::OnInputDeviceConnected(const std::string_view& identifier, const std::string_view& device_name)
|
||||
void InputManager::OnInputDeviceConnected(const std::string_view identifier, const std::string_view device_name)
|
||||
{
|
||||
if (VMManager::HasValidVM())
|
||||
USB::InputDeviceConnected(identifier);
|
||||
@@ -1207,12 +1207,12 @@ void InputManager::OnInputDeviceConnected(const std::string_view& identifier, co
|
||||
Host::OnInputDeviceConnected(identifier, device_name);
|
||||
}
|
||||
|
||||
void InputManager::OnInputDeviceDisconnected(const std::string_view& identifier)
|
||||
void InputManager::OnInputDeviceDisconnected(const InputBindingKey key, const std::string_view identifier)
|
||||
{
|
||||
if (VMManager::HasValidVM())
|
||||
USB::InputDeviceDisconnected(identifier);
|
||||
|
||||
Host::OnInputDeviceDisconnected(identifier);
|
||||
Host::OnInputDeviceDisconnected(key, identifier);
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user