hid/npad: Fix incorrect connection boolean value in ConnectAllDisconnectedControllers()
We should be setting the connection state to true, otherwise we aren't actually making the controllers connected like the function name indicates.
This commit is contained in:
parent
d076466f26
commit
8d8e495248
1 changed files with 1 additions and 1 deletions
|
@ -637,7 +637,7 @@ void Controller_NPad::DisconnectAllConnectedControllers() {
|
||||||
void Controller_NPad::ConnectAllDisconnectedControllers() {
|
void Controller_NPad::ConnectAllDisconnectedControllers() {
|
||||||
for (ControllerHolder& controller : connected_controllers) {
|
for (ControllerHolder& controller : connected_controllers) {
|
||||||
if (controller.type != NPadControllerType::None && !controller.is_connected) {
|
if (controller.type != NPadControllerType::None && !controller.is_connected) {
|
||||||
controller.is_connected = false;
|
controller.is_connected = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue