diff options
Diffstat (limited to 'src/core/hid/emulated_controller.cpp')
| -rw-r--r-- | src/core/hid/emulated_controller.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp index 71fc05807..52a56ef1a 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/core/hid/emulated_controller.cpp | |||
| @@ -389,7 +389,8 @@ std::vector<Common::ParamPackage> EmulatedController::GetMappedDevices( | |||
| 389 | devices.begin(), devices.end(), [param](const Common::ParamPackage param_) { | 389 | devices.begin(), devices.end(), [param](const Common::ParamPackage param_) { |
| 390 | return param.Get("engine", "") == param_.Get("engine", "") && | 390 | return param.Get("engine", "") == param_.Get("engine", "") && |
| 391 | param.Get("guid", "") == param_.Get("guid", "") && | 391 | param.Get("guid", "") == param_.Get("guid", "") && |
| 392 | param.Get("port", 0) == param_.Get("port", 0); | 392 | param.Get("port", 0) == param_.Get("port", 0) && |
| 393 | param.Get("pad", 0) == param_.Get("pad", 0); | ||
| 393 | }); | 394 | }); |
| 394 | if (devices_it != devices.end()) { | 395 | if (devices_it != devices.end()) { |
| 395 | continue; | 396 | continue; |
| @@ -398,6 +399,7 @@ std::vector<Common::ParamPackage> EmulatedController::GetMappedDevices( | |||
| 398 | device.Set("engine", param.Get("engine", "")); | 399 | device.Set("engine", param.Get("engine", "")); |
| 399 | device.Set("guid", param.Get("guid", "")); | 400 | device.Set("guid", param.Get("guid", "")); |
| 400 | device.Set("port", param.Get("port", 0)); | 401 | device.Set("port", param.Get("port", 0)); |
| 402 | device.Set("pad", param.Get("pad", 0)); | ||
| 401 | devices.push_back(device); | 403 | devices.push_back(device); |
| 402 | } | 404 | } |
| 403 | 405 | ||
| @@ -412,7 +414,8 @@ std::vector<Common::ParamPackage> EmulatedController::GetMappedDevices( | |||
| 412 | devices.begin(), devices.end(), [param](const Common::ParamPackage param_) { | 414 | devices.begin(), devices.end(), [param](const Common::ParamPackage param_) { |
| 413 | return param.Get("engine", "") == param_.Get("engine", "") && | 415 | return param.Get("engine", "") == param_.Get("engine", "") && |
| 414 | param.Get("guid", "") == param_.Get("guid", "") && | 416 | param.Get("guid", "") == param_.Get("guid", "") && |
| 415 | param.Get("port", 0) == param_.Get("port", 0); | 417 | param.Get("port", 0) == param_.Get("port", 0) && |
| 418 | param.Get("pad", 0) == param_.Get("pad", 0); | ||
| 416 | }); | 419 | }); |
| 417 | if (devices_it != devices.end()) { | 420 | if (devices_it != devices.end()) { |
| 418 | continue; | 421 | continue; |
| @@ -421,6 +424,7 @@ std::vector<Common::ParamPackage> EmulatedController::GetMappedDevices( | |||
| 421 | device.Set("engine", param.Get("engine", "")); | 424 | device.Set("engine", param.Get("engine", "")); |
| 422 | device.Set("guid", param.Get("guid", "")); | 425 | device.Set("guid", param.Get("guid", "")); |
| 423 | device.Set("port", param.Get("port", 0)); | 426 | device.Set("port", param.Get("port", 0)); |
| 427 | device.Set("pad", param.Get("pad", 0)); | ||
| 424 | devices.push_back(device); | 428 | devices.push_back(device); |
| 425 | } | 429 | } |
| 426 | return devices; | 430 | return devices; |