summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-11-04 16:14:27 +0100
committerGitHub <noreply@github.com>2023-11-04 16:14:27 +0100
commit409fa5dda27b0927bcdf7fe0fd74b6ab04a9b119 (patch)
tree15807b554a3c3448ba0613ebc1ceb2cec4c27fbb /src
parentMerge pull request #11959 from t895/firmware-reload-fix (diff)
parentservice: hid: Silence EnableUnintendedHomeButtonInputProtection (diff)
downloadyuzu-409fa5dda27b0927bcdf7fe0fd74b6ab04a9b119.tar
yuzu-409fa5dda27b0927bcdf7fe0fd74b6ab04a9b119.tar.gz
yuzu-409fa5dda27b0927bcdf7fe0fd74b6ab04a9b119.tar.bz2
yuzu-409fa5dda27b0927bcdf7fe0fd74b6ab04a9b119.tar.lz
yuzu-409fa5dda27b0927bcdf7fe0fd74b6ab04a9b119.tar.xz
yuzu-409fa5dda27b0927bcdf7fe0fd74b6ab04a9b119.tar.zst
yuzu-409fa5dda27b0927bcdf7fe0fd74b6ab04a9b119.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/hid/hid.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 929dd5f03..1d4101be9 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -1353,7 +1353,7 @@ void Hid::IsUnintendedHomeButtonInputProtectionEnabled(HLERequestContext& ctx) {
void Hid::EnableUnintendedHomeButtonInputProtection(HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
struct Parameters {
- bool unintended_home_button_input_protection;
+ bool is_enabled;
INSERT_PADDING_BYTES_NOINIT(3);
Core::HID::NpadIdType npad_id;
u64 applet_resource_user_id;
@@ -1364,13 +1364,11 @@ void Hid::EnableUnintendedHomeButtonInputProtection(HLERequestContext& ctx) {
auto& controller = GetAppletResource()->GetController<Controller_NPad>(HidController::NPad);
const auto result = controller.SetUnintendedHomeButtonInputProtectionEnabled(
- parameters.unintended_home_button_input_protection, parameters.npad_id);
+ parameters.is_enabled, parameters.npad_id);
- LOG_WARNING(Service_HID,
- "(STUBBED) called, unintended_home_button_input_protection={}, npad_id={},"
- "applet_resource_user_id={}",
- parameters.unintended_home_button_input_protection, parameters.npad_id,
- parameters.applet_resource_user_id);
+ LOG_DEBUG(Service_HID,
+ "(STUBBED) called, is_enabled={}, npad_id={}, applet_resource_user_id={}",
+ parameters.is_enabled, parameters.npad_id, parameters.applet_resource_user_id);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);