VERY experimental Nintendo Switch 2 emulator
C++
Implement HID function stub "SetGestureOutputRanges" (#105)
EmulationEnjoyerd5bb26bf3e0a
diff --git a/src/core/hle/service/hid/hid_server.cpp b/src/core/hle/service/hid/hid_server.cppindex 926a3bfe99..d38a8c04fa 100644--- a/src/core/hle/service/hid/hid_server.cpp+++ b/src/core/hle/service/hid/hid_server.cpp@@ -89,6 +89,7 @@ IHidServer::IHidServer(Core::System& system_, std::shared_ptr<ResourceManager> r{88, C<&IHidServer::GetSixAxisSensorIcInformation>, "GetSixAxisSensorIcInformation"},{89, C<&IHidServer::ResetIsSixAxisSensorDeviceNewlyAssigned>, "ResetIsSixAxisSensorDeviceNewlyAssigned"},{91, C<&IHidServer::ActivateGesture>, "ActivateGesture"},+ {92, C<&IHidServer::SetGestureOutputRanges>, "SetGestureOutputRanges"},{100, C<&IHidServer::SetSupportedNpadStyleSet>, "SetSupportedNpadStyleSet"},{101, C<&IHidServer::GetSupportedNpadStyleSet>, "GetSupportedNpadStyleSet"},{102, C<&IHidServer::SetSupportedNpadIdType>, "SetSupportedNpadIdType"},@@ -576,6 +577,15 @@ Result IHidServer::ActivateGesture(u32 basic_gesture_id, ClientAppletResourceUseR_RETURN(GetResourceManager()->GetGesture()->Activate(aruid.pid, basic_gesture_id));}+Result IHidServer::SetGestureOutputRanges(u32 param1, u32 param2, u32 param3, u32 param4) {+ // https://switchbrew.org/wiki/HID_services , Undocumented. 92 [18.0.0+] SetGestureOutputRanges+ LOG_WARNING(+ Service_HID,+ "(STUBBED) called, param1={}, param2={}, param3={}, param4={}",+ param1, param2, param3, param4);+ R_SUCCEED();+}+Result IHidServer::SetSupportedNpadStyleSet(Core::HID::NpadStyleSet supported_style_set,ClientAppletResourceUserId aruid) {LOG_DEBUG(Service_HID, "called, supported_style_set={}, applet_resource_user_id={}",diff --git a/src/core/hle/service/hid/hid_server.h b/src/core/hle/service/hid/hid_server.hindex cfa31c2dee..9fdb25d5ca 100644--- a/src/core/hle/service/hid/hid_server.h+++ b/src/core/hle/service/hid/hid_server.h@@ -104,6 +104,7 @@ private:Result ResetIsSixAxisSensorDeviceNewlyAssigned(Core::HID::SixAxisSensorHandle sixaxis_handle,ClientAppletResourceUserId aruid);Result ActivateGesture(u32 basic_gesture_id, ClientAppletResourceUserId aruid);+ Result SetGestureOutputRanges(u32 param1, u32 param2, u32 param3, u32 param4);Result SetSupportedNpadStyleSet(Core::HID::NpadStyleSet supported_style_set,ClientAppletResourceUserId aruid);Result GetSupportedNpadStyleSet(Out<Core::HID::NpadStyleSet> out_supported_style_set,