diff options
| author | 2018-10-19 03:57:14 -0400 | |
|---|---|---|
| committer | 2018-10-19 03:59:15 -0400 | |
| commit | f6c5a48dd1de9840f669538db8593227ea0b7421 (patch) | |
| tree | 293b06ac8332a278f29533589af62000495ca4ba | |
| parent | nim: Add the basic skeleton of the nim:eca service (diff) | |
| download | yuzu-f6c5a48dd1de9840f669538db8593227ea0b7421.tar.gz yuzu-f6c5a48dd1de9840f669538db8593227ea0b7421.tar.xz yuzu-f6c5a48dd1de9840f669538db8593227ea0b7421.zip | |
hid: Update service function tables
Updated based off information provided by Switchbrew.
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 8aca0f197..beb89218a 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -177,6 +177,7 @@ public: | |||
| 177 | {11, &Hid::ActivateTouchScreen, "ActivateTouchScreen"}, | 177 | {11, &Hid::ActivateTouchScreen, "ActivateTouchScreen"}, |
| 178 | {21, &Hid::ActivateMouse, "ActivateMouse"}, | 178 | {21, &Hid::ActivateMouse, "ActivateMouse"}, |
| 179 | {31, &Hid::ActivateKeyboard, "ActivateKeyboard"}, | 179 | {31, &Hid::ActivateKeyboard, "ActivateKeyboard"}, |
| 180 | {32, nullptr, "SendKeyboardLockKeyEvent"}, | ||
| 180 | {40, nullptr, "AcquireXpadIdEventHandle"}, | 181 | {40, nullptr, "AcquireXpadIdEventHandle"}, |
| 181 | {41, nullptr, "ReleaseXpadIdEventHandle"}, | 182 | {41, nullptr, "ReleaseXpadIdEventHandle"}, |
| 182 | {51, &Hid::ActivateXpad, "ActivateXpad"}, | 183 | {51, &Hid::ActivateXpad, "ActivateXpad"}, |
| @@ -207,6 +208,7 @@ public: | |||
| 207 | {80, nullptr, "GetGyroscopeZeroDriftMode"}, | 208 | {80, nullptr, "GetGyroscopeZeroDriftMode"}, |
| 208 | {81, nullptr, "ResetGyroscopeZeroDriftMode"}, | 209 | {81, nullptr, "ResetGyroscopeZeroDriftMode"}, |
| 209 | {82, &Hid::IsSixAxisSensorAtRest, "IsSixAxisSensorAtRest"}, | 210 | {82, &Hid::IsSixAxisSensorAtRest, "IsSixAxisSensorAtRest"}, |
| 211 | {83, nullptr, "IsFirmwareUpdateAvailableForSixAxisSensor"}, | ||
| 210 | {91, &Hid::ActivateGesture, "ActivateGesture"}, | 212 | {91, &Hid::ActivateGesture, "ActivateGesture"}, |
| 211 | {100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"}, | 213 | {100, &Hid::SetSupportedNpadStyleSet, "SetSupportedNpadStyleSet"}, |
| 212 | {101, &Hid::GetSupportedNpadStyleSet, "GetSupportedNpadStyleSet"}, | 214 | {101, &Hid::GetSupportedNpadStyleSet, "GetSupportedNpadStyleSet"}, |
| @@ -252,6 +254,7 @@ public: | |||
| 252 | {307, nullptr, "FinalizeSevenSixAxisSensor"}, | 254 | {307, nullptr, "FinalizeSevenSixAxisSensor"}, |
| 253 | {308, nullptr, "SetSevenSixAxisSensorFusionStrength"}, | 255 | {308, nullptr, "SetSevenSixAxisSensorFusionStrength"}, |
| 254 | {309, nullptr, "GetSevenSixAxisSensorFusionStrength"}, | 256 | {309, nullptr, "GetSevenSixAxisSensorFusionStrength"}, |
| 257 | {310, nullptr, "ResetSevenSixAxisSensorTimestamp"}, | ||
| 255 | {400, nullptr, "IsUsbFullKeyControllerEnabled"}, | 258 | {400, nullptr, "IsUsbFullKeyControllerEnabled"}, |
| 256 | {401, nullptr, "EnableUsbFullKeyController"}, | 259 | {401, nullptr, "EnableUsbFullKeyController"}, |
| 257 | {402, nullptr, "IsUsbFullKeyControllerConnected"}, | 260 | {402, nullptr, "IsUsbFullKeyControllerConnected"}, |
| @@ -267,12 +270,24 @@ public: | |||
| 267 | {505, nullptr, "SetPalmaFrModeType"}, | 270 | {505, nullptr, "SetPalmaFrModeType"}, |
| 268 | {506, nullptr, "ReadPalmaStep"}, | 271 | {506, nullptr, "ReadPalmaStep"}, |
| 269 | {507, nullptr, "EnablePalmaStep"}, | 272 | {507, nullptr, "EnablePalmaStep"}, |
| 270 | {508, nullptr, "SuspendPalmaStep"}, | 273 | {508, nullptr, "ResetPalmaStep"}, |
| 271 | {509, nullptr, "ResetPalmaStep"}, | 274 | {509, nullptr, "ReadPalmaApplicationSection"}, |
| 272 | {510, nullptr, "ReadPalmaApplicationSection"}, | 275 | {510, nullptr, "WritePalmaApplicationSection"}, |
| 273 | {511, nullptr, "WritePalmaApplicationSection"}, | 276 | {511, nullptr, "ReadPalmaUniqueCode"}, |
| 274 | {512, nullptr, "ReadPalmaUniqueCode"}, | 277 | {512, nullptr, "SetPalmaUniqueCodeInvalid"}, |
| 275 | {513, nullptr, "SetPalmaUniqueCodeInvalid"}, | 278 | {513, nullptr, "WritePalmaActivityEntry"}, |
| 279 | {514, nullptr, "WritePalmaRgbLedPatternEntry"}, | ||
| 280 | {515, nullptr, "WritePalmaWaveEntry"}, | ||
| 281 | {516, nullptr, "SetPalmaDataBaseIdentificationVersion"}, | ||
| 282 | {517, nullptr, "GetPalmaDataBaseIdentificationVersion"}, | ||
| 283 | {518, nullptr, "SuspendPalmaFeature"}, | ||
| 284 | {519, nullptr, "GetPalmaOperationResult"}, | ||
| 285 | {520, nullptr, "ReadPalmaPlayLog"}, | ||
| 286 | {521, nullptr, "ResetPalmaPlayLog"}, | ||
| 287 | {522, nullptr, "SetIsPalmaAllConnectable"}, | ||
| 288 | {523, nullptr, "SetIsPalmaPairedConnectable"}, | ||
| 289 | {524, nullptr, "PairPalma"}, | ||
| 290 | {525, nullptr, "SetPalmaBoostMode"}, | ||
| 276 | {1000, nullptr, "SetNpadCommunicationMode"}, | 291 | {1000, nullptr, "SetNpadCommunicationMode"}, |
| 277 | {1001, nullptr, "GetNpadCommunicationMode"}, | 292 | {1001, nullptr, "GetNpadCommunicationMode"}, |
| 278 | }; | 293 | }; |
| @@ -620,6 +635,7 @@ public: | |||
| 620 | {140, nullptr, "DeactivateConsoleSixAxisSensor"}, | 635 | {140, nullptr, "DeactivateConsoleSixAxisSensor"}, |
| 621 | {141, nullptr, "GetConsoleSixAxisSensorSamplingFrequency"}, | 636 | {141, nullptr, "GetConsoleSixAxisSensorSamplingFrequency"}, |
| 622 | {142, nullptr, "DeactivateSevenSixAxisSensor"}, | 637 | {142, nullptr, "DeactivateSevenSixAxisSensor"}, |
| 638 | {143, nullptr, "GetConsoleSixAxisSensorCountStates"}, | ||
| 623 | {201, nullptr, "ActivateFirmwareUpdate"}, | 639 | {201, nullptr, "ActivateFirmwareUpdate"}, |
| 624 | {202, nullptr, "DeactivateFirmwareUpdate"}, | 640 | {202, nullptr, "DeactivateFirmwareUpdate"}, |
| 625 | {203, nullptr, "StartFirmwareUpdate"}, | 641 | {203, nullptr, "StartFirmwareUpdate"}, |
| @@ -630,12 +646,23 @@ public: | |||
| 630 | {208, nullptr, "StartFirmwareUpdateForRevert"}, | 646 | {208, nullptr, "StartFirmwareUpdateForRevert"}, |
| 631 | {209, nullptr, "GetAvailableFirmwareVersionForRevert"}, | 647 | {209, nullptr, "GetAvailableFirmwareVersionForRevert"}, |
| 632 | {210, nullptr, "IsFirmwareUpdatingDevice"}, | 648 | {210, nullptr, "IsFirmwareUpdatingDevice"}, |
| 649 | {211, nullptr, "StartFirmwareUpdateIndividual"}, | ||
| 650 | {215, nullptr, "SetUsbFirmwareForceUpdateEnabled"}, | ||
| 651 | {216, nullptr, "SetAllKuinaDevicesToFirmwareUpdateMode"}, | ||
| 633 | {221, nullptr, "UpdateControllerColor"}, | 652 | {221, nullptr, "UpdateControllerColor"}, |
| 634 | {222, nullptr, "ConnectUsbPadsAsync"}, | 653 | {222, nullptr, "ConnectUsbPadsAsync"}, |
| 635 | {223, nullptr, "DisconnectUsbPadsAsync"}, | 654 | {223, nullptr, "DisconnectUsbPadsAsync"}, |
| 636 | {224, nullptr, "UpdateDesignInfo"}, | 655 | {224, nullptr, "UpdateDesignInfo"}, |
| 637 | {225, nullptr, "GetUniquePadDriverState"}, | 656 | {225, nullptr, "GetUniquePadDriverState"}, |
| 638 | {226, nullptr, "GetSixAxisSensorDriverStates"}, | 657 | {226, nullptr, "GetSixAxisSensorDriverStates"}, |
| 658 | {227, nullptr, "GetRxPacketHistory"}, | ||
| 659 | {228, nullptr, "AcquireOperationEventHandle"}, | ||
| 660 | {229, nullptr, "ReadSerialFlash"}, | ||
| 661 | {230, nullptr, "WriteSerialFlash"}, | ||
| 662 | {231, nullptr, "GetOperationResult"}, | ||
| 663 | {232, nullptr, "EnableShipmentMode"}, | ||
| 664 | {233, nullptr, "ClearPairingInfo"}, | ||
| 665 | {234, nullptr, "GetUniquePadDeviceTypeSetInternal"}, | ||
| 639 | {301, nullptr, "GetAbstractedPadHandles"}, | 666 | {301, nullptr, "GetAbstractedPadHandles"}, |
| 640 | {302, nullptr, "GetAbstractedPadState"}, | 667 | {302, nullptr, "GetAbstractedPadState"}, |
| 641 | {303, nullptr, "GetAbstractedPadsState"}, | 668 | {303, nullptr, "GetAbstractedPadsState"}, |
| @@ -643,6 +670,8 @@ public: | |||
| 643 | {322, nullptr, "UnsetAutoPilotVirtualPadState"}, | 670 | {322, nullptr, "UnsetAutoPilotVirtualPadState"}, |
| 644 | {323, nullptr, "UnsetAllAutoPilotVirtualPadState"}, | 671 | {323, nullptr, "UnsetAllAutoPilotVirtualPadState"}, |
| 645 | {350, nullptr, "AddRegisteredDevice"}, | 672 | {350, nullptr, "AddRegisteredDevice"}, |
| 673 | {400, nullptr, "DisableExternalMcuOnNxDevice"}, | ||
| 674 | {401, nullptr, "DisableRailDeviceFiltering"}, | ||
| 646 | }; | 675 | }; |
| 647 | // clang-format on | 676 | // clang-format on |
| 648 | 677 | ||
| @@ -678,7 +707,9 @@ public: | |||
| 678 | {307, nullptr, "GetNpadSystemExtStyle"}, | 707 | {307, nullptr, "GetNpadSystemExtStyle"}, |
| 679 | {308, nullptr, "ApplyNpadSystemCommonPolicyFull"}, | 708 | {308, nullptr, "ApplyNpadSystemCommonPolicyFull"}, |
| 680 | {309, nullptr, "GetNpadFullKeyGripColor"}, | 709 | {309, nullptr, "GetNpadFullKeyGripColor"}, |
| 710 | {310, nullptr, "GetMaskedSupportedNpadStyleSet"}, | ||
| 681 | {311, nullptr, "SetNpadPlayerLedBlinkingDevice"}, | 711 | {311, nullptr, "SetNpadPlayerLedBlinkingDevice"}, |
| 712 | {312, nullptr, "SetSupportedNpadStyleSetAll"}, | ||
| 682 | {321, nullptr, "GetUniquePadsFromNpad"}, | 713 | {321, nullptr, "GetUniquePadsFromNpad"}, |
| 683 | {322, nullptr, "GetIrSensorState"}, | 714 | {322, nullptr, "GetIrSensorState"}, |
| 684 | {323, nullptr, "GetXcdHandleForNpadWithIrSensor"}, | 715 | {323, nullptr, "GetXcdHandleForNpadWithIrSensor"}, |
| @@ -703,6 +734,7 @@ public: | |||
| 703 | {546, nullptr, "AcquireDeviceRegisteredEventForControllerSupport"}, | 734 | {546, nullptr, "AcquireDeviceRegisteredEventForControllerSupport"}, |
| 704 | {547, nullptr, "GetAllowedBluetoothLinksCount"}, | 735 | {547, nullptr, "GetAllowedBluetoothLinksCount"}, |
| 705 | {548, nullptr, "GetRegisteredDevices"}, | 736 | {548, nullptr, "GetRegisteredDevices"}, |
| 737 | {549, nullptr, "GetConnectableRegisteredDevices"}, | ||
| 706 | {700, nullptr, "ActivateUniquePad"}, | 738 | {700, nullptr, "ActivateUniquePad"}, |
| 707 | {702, nullptr, "AcquireUniquePadConnectionEventHandle"}, | 739 | {702, nullptr, "AcquireUniquePadConnectionEventHandle"}, |
| 708 | {703, nullptr, "GetUniquePadIds"}, | 740 | {703, nullptr, "GetUniquePadIds"}, |
| @@ -731,6 +763,7 @@ public: | |||
| 731 | {850, nullptr, "IsUsbFullKeyControllerEnabled"}, | 763 | {850, nullptr, "IsUsbFullKeyControllerEnabled"}, |
| 732 | {851, nullptr, "EnableUsbFullKeyController"}, | 764 | {851, nullptr, "EnableUsbFullKeyController"}, |
| 733 | {852, nullptr, "IsUsbConnected"}, | 765 | {852, nullptr, "IsUsbConnected"}, |
| 766 | {870, nullptr, "IsHandheldButtonPressedOnConsoleMode"}, | ||
| 734 | {900, nullptr, "ActivateInputDetector"}, | 767 | {900, nullptr, "ActivateInputDetector"}, |
| 735 | {901, nullptr, "NotifyInputDetector"}, | 768 | {901, nullptr, "NotifyInputDetector"}, |
| 736 | {1000, nullptr, "InitializeFirmwareUpdate"}, | 769 | {1000, nullptr, "InitializeFirmwareUpdate"}, |
| @@ -750,6 +783,12 @@ public: | |||
| 750 | {1052, nullptr, "CancelSixAxisSensorAccurateUserCalibration"}, | 783 | {1052, nullptr, "CancelSixAxisSensorAccurateUserCalibration"}, |
| 751 | {1053, nullptr, "GetSixAxisSensorAccurateUserCalibrationState"}, | 784 | {1053, nullptr, "GetSixAxisSensorAccurateUserCalibrationState"}, |
| 752 | {1100, nullptr, "GetHidbusSystemServiceObject"}, | 785 | {1100, nullptr, "GetHidbusSystemServiceObject"}, |
| 786 | {1120, nullptr, "SetFirmwareHotfixUpdateSkipEnabled"}, | ||
| 787 | {1130, nullptr, "InitializeUsbFirmwareUpdate"}, | ||
| 788 | {1131, nullptr, "FinalizeUsbFirmwareUpdate"}, | ||
| 789 | {1132, nullptr, "CheckUsbFirmwareUpdateRequired"}, | ||
| 790 | {1133, nullptr, "StartUsbFirmwareUpdate"}, | ||
| 791 | {1134, nullptr, "GetUsbFirmwareUpdateState"}, | ||
| 753 | }; | 792 | }; |
| 754 | // clang-format on | 793 | // clang-format on |
| 755 | 794 | ||