VERY experimental Nintendo Switch 2 emulator
C++
Updated hid with more service names.
Hexagon12e05e3c8a080c
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cppindex 019a094443..868ac6f46d 100644--- a/src/core/hle/service/hid/hid.cpp+++ b/src/core/hle/service/hid/hid.cpp@@ -198,25 +198,75 @@ public:{11, &Hid::ActivateTouchScreen, "ActivateTouchScreen"},{21, &Hid::ActivateMouse, "ActivateMouse"},{31, &Hid::ActivateKeyboard, "ActivateKeyboard"},+ {40, nullptr, "AcquireXpadIdEventHandle"},+ {41, nullptr, "ReleaseXpadIdEventHandle"},+ {51, nullptr, "ActivateXpad"},+ {55, nullptr, "GetXpadIds"},+ {56, nullptr, "ActivateJoyXpad"},+ {58, nullptr, "GetJoyXpadLifoHandle"},+ {59, nullptr, "GetJoyXpadIds"},+ {60, nullptr, "ActivateSixAxisSensor"},+ {61, nullptr, "DeactivateSixAxisSensor"},+ {62, nullptr, "GetSixAxisSensorLifoHandle"},+ {63, nullptr, "ActivateJoySixAxisSensor"},+ {64, nullptr, "DeactivateJoySixAxisSensor"},+ {65, nullptr, "GetJoySixAxisSensorLifoHandle"},{66, &Hid::StartSixAxisSensor, "StartSixAxisSensor"},+ {67, nullptr, "StopSixAxisSensor"},+ {68, nullptr, "IsSixAxisSensorFusionEnabled"},+ {69, nullptr, "EnableSixAxisSensorFusion"},+ {70, nullptr, "SetSixAxisSensorFusionParameters"},+ {71, nullptr, "GetSixAxisSensorFusionParameters"},+ {72, nullptr, "ResetSixAxisSensorFusionParameters"},+ {73, nullptr, "SetAccelerometerParameters"},+ {74, nullptr, "GetAccelerometerParameters"},+ {75, nullptr, "ResetAccelerometerParameters"},+ {76, nullptr, "SetAccelerometerPlayMode"},+ {77, nullptr, "GetAccelerometerPlayMode"},+ {78, nullptr, "ResetAccelerometerPlayMode"},{79, &Hid::SetGyroscopeZeroDriftMode, "SetGyroscopeZeroDriftMode"},+ {80, nullptr, "GetGyroscopeZeroDriftMode"},+ {81, nullptr, "ResetGyroscopeZeroDriftMode"},+ {82, nullptr, "IsSixAxisSensorAtRest"},+ {91, nullptr, "ActivateGesture"},{100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"},{101, &Hid::GetSupportedNpadStyleSet, "GetSupportedNpadStyleSet"},{102, &Hid::SetSupportedNpadIdType, "SetSupportedNpadIdType"},{103, &Hid::ActivateNpad, "ActivateNpad"},+ {104, nullptr, "DeactivateNpad"},{106, &Hid::AcquireNpadStyleSetUpdateEventHandle,"AcquireNpadStyleSetUpdateEventHandle"},+ {107, nullptr, "DisconnectNpad"},+ {108, nullptr, "GetPlayerLedPattern"},{120, &Hid::SetNpadJoyHoldType, "SetNpadJoyHoldType"},{121, &Hid::GetNpadJoyHoldType, "GetNpadJoyHoldType"},{122, &Hid::SetNpadJoyAssignmentModeSingleByDefault,"SetNpadJoyAssignmentModeSingleByDefault"},+ {123, nullptr, "SetNpadJoyAssignmentModeSingleByDefault"},{124, &Hid::SetNpadJoyAssignmentModeDual, "SetNpadJoyAssignmentModeDual"},+ {125, nullptr, "MergeSingleJoyAsDualJoy"},+ {126, nullptr, "StartLrAssignmentMode"},+ {127, nullptr, "StopLrAssignmentMode"},{128, &Hid::SetNpadHandheldActivationMode, "SetNpadHandheldActivationMode"},+ {129, nullptr, "GetNpadHandheldActivationMode"},+ {130, nullptr, "SwapNpadAssignment"},+ {131, nullptr, "IsUnintendedHomeButtonInputProtectionEnabled"},+ {132, nullptr, "EnableUnintendedHomeButtonInputProtection"},{200, &Hid::GetVibrationDeviceInfo, "GetVibrationDeviceInfo"},{201, &Hid::SendVibrationValue, "SendVibrationValue"},{202, &Hid::GetActualVibrationValue, "GetActualVibrationValue"},{203, &Hid::CreateActiveVibrationDeviceList, "CreateActiveVibrationDeviceList"},+ {204, nullptr, "PermitVibration"},+ {205, nullptr, "IsVibrationPermitted"},{206, &Hid::SendVibrationValues, "SendVibrationValues"},+ {300, nullptr, "ActivateConsoleSixAxisSensor"},+ {301, nullptr, "StartConsoleSixAxisSensor"},+ {302, nullptr, "StopConsoleSixAxisSensor"},+ {400, nullptr, "IsUsbFullKeyControllerEnabled"},+ {401, nullptr, "EnableUsbFullKeyController"},+ {402, nullptr, "IsUsbFullKeyControllerConnected"},+ {1000, nullptr, "SetNpadCommunicationMode"},+ {1001, nullptr, "GetNpadCommunicationMode"},};RegisterHandlers(functions);