summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar german772023-01-02 22:11:03 -0600
committerGravatar Narr the Reg2023-01-19 18:05:22 -0600
commitd05ea2f3ebdf62e328d2edbfc5b9bc01e3453569 (patch)
tree5863733770eb47f15aa528438e47a1cab2e794b4 /src/core
parentinput_common: Implement joycon ir camera (diff)
downloadyuzu-d05ea2f3ebdf62e328d2edbfc5b9bc01e3453569.tar.gz
yuzu-d05ea2f3ebdf62e328d2edbfc5b9bc01e3453569.tar.xz
yuzu-d05ea2f3ebdf62e328d2edbfc5b9bc01e3453569.zip
input_common: Fix issue where ring and irs are enabled at the same time
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/hid/irs.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp
index 3c1fa2274..1a6fa2a44 100644
--- a/src/core/hle/service/hid/irs.cpp
+++ b/src/core/hle/service/hid/irs.cpp
@@ -74,8 +74,6 @@ void IRS::DeactivateIrsensor(Kernel::HLERequestContext& ctx) {
74 LOG_WARNING(Service_IRS, "(STUBBED) called, applet_resource_user_id={}", 74 LOG_WARNING(Service_IRS, "(STUBBED) called, applet_resource_user_id={}",
75 applet_resource_user_id); 75 applet_resource_user_id);
76 76
77 npad_device->SetPollingMode(Common::Input::PollingMode::Active);
78
79 IPC::ResponseBuilder rb{ctx, 2}; 77 IPC::ResponseBuilder rb{ctx, 2};
80 rb.Push(ResultSuccess); 78 rb.Push(ResultSuccess);
81} 79}
@@ -514,7 +512,7 @@ void IRS::StopImageProcessorAsync(Kernel::HLERequestContext& ctx) {
514 auto result = IsIrCameraHandleValid(parameters.camera_handle); 512 auto result = IsIrCameraHandleValid(parameters.camera_handle);
515 if (result.IsSuccess()) { 513 if (result.IsSuccess()) {
516 // TODO: Stop image processor async 514 // TODO: Stop image processor async
517 npad_device->SetPollingMode(Common::Input::PollingMode::IR); 515 npad_device->SetPollingMode(Common::Input::PollingMode::Active);
518 result = ResultSuccess; 516 result = ResultSuccess;
519 } 517 }
520 518