summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/hid/hid.cpp83
-rw-r--r--src/core/hle/service/hid/xcd.cpp2
2 files changed, 85 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index ba27bbb05..d333d61a1 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -278,6 +278,7 @@ Hid::Hid(Core::System& system_) : ServiceFramework{system_, "hid"} {
278 {209, &Hid::BeginPermitVibrationSession, "BeginPermitVibrationSession"}, 278 {209, &Hid::BeginPermitVibrationSession, "BeginPermitVibrationSession"},
279 {210, &Hid::EndPermitVibrationSession, "EndPermitVibrationSession"}, 279 {210, &Hid::EndPermitVibrationSession, "EndPermitVibrationSession"},
280 {211, &Hid::IsVibrationDeviceMounted, "IsVibrationDeviceMounted"}, 280 {211, &Hid::IsVibrationDeviceMounted, "IsVibrationDeviceMounted"},
281 {212, nullptr, "SendVibrationValueInBool"},
281 {300, &Hid::ActivateConsoleSixAxisSensor, "ActivateConsoleSixAxisSensor"}, 282 {300, &Hid::ActivateConsoleSixAxisSensor, "ActivateConsoleSixAxisSensor"},
282 {301, &Hid::StartConsoleSixAxisSensor, "StartConsoleSixAxisSensor"}, 283 {301, &Hid::StartConsoleSixAxisSensor, "StartConsoleSixAxisSensor"},
283 {302, &Hid::StopConsoleSixAxisSensor, "StopConsoleSixAxisSensor"}, 284 {302, &Hid::StopConsoleSixAxisSensor, "StopConsoleSixAxisSensor"},
@@ -1553,6 +1554,7 @@ public:
1553 {11, nullptr, "SetTouchScreenAutoPilotState"}, 1554 {11, nullptr, "SetTouchScreenAutoPilotState"},
1554 {12, nullptr, "UnsetTouchScreenAutoPilotState"}, 1555 {12, nullptr, "UnsetTouchScreenAutoPilotState"},
1555 {13, nullptr, "GetTouchScreenConfiguration"}, 1556 {13, nullptr, "GetTouchScreenConfiguration"},
1557 {14, nullptr, "ProcessTouchScreenAutoTune"},
1556 {20, nullptr, "DeactivateMouse"}, 1558 {20, nullptr, "DeactivateMouse"},
1557 {21, nullptr, "SetMouseAutoPilotState"}, 1559 {21, nullptr, "SetMouseAutoPilotState"},
1558 {22, nullptr, "UnsetMouseAutoPilotState"}, 1560 {22, nullptr, "UnsetMouseAutoPilotState"},
@@ -1562,6 +1564,7 @@ public:
1562 {50, nullptr, "DeactivateXpad"}, 1564 {50, nullptr, "DeactivateXpad"},
1563 {51, nullptr, "SetXpadAutoPilotState"}, 1565 {51, nullptr, "SetXpadAutoPilotState"},
1564 {52, nullptr, "UnsetXpadAutoPilotState"}, 1566 {52, nullptr, "UnsetXpadAutoPilotState"},
1567 {53, nullptr, "DeactivateJoyXpad"},
1565 {60, nullptr, "ClearNpadSystemCommonPolicy"}, 1568 {60, nullptr, "ClearNpadSystemCommonPolicy"},
1566 {61, nullptr, "DeactivateNpad"}, 1569 {61, nullptr, "DeactivateNpad"},
1567 {62, nullptr, "ForceDisconnectNpad"}, 1570 {62, nullptr, "ForceDisconnectNpad"},
@@ -1632,6 +1635,11 @@ public:
1632 {244, nullptr, "RequestKuinaFirmwareVersion"}, 1635 {244, nullptr, "RequestKuinaFirmwareVersion"},
1633 {245, nullptr, "GetKuinaFirmwareVersion"}, 1636 {245, nullptr, "GetKuinaFirmwareVersion"},
1634 {246, nullptr, "GetVidPid"}, 1637 {246, nullptr, "GetVidPid"},
1638 {247, nullptr, "GetAnalogStickCalibrationValue"},
1639 {248, nullptr, "GetUniquePadIdsFull"},
1640 {249, nullptr, "ConnectUniquePad"},
1641 {250, nullptr, "IsVirtual"},
1642 {251, nullptr, "GetAnalogStickModuleParam"},
1635 {301, nullptr, "GetAbstractedPadHandles"}, 1643 {301, nullptr, "GetAbstractedPadHandles"},
1636 {302, nullptr, "GetAbstractedPadState"}, 1644 {302, nullptr, "GetAbstractedPadState"},
1637 {303, nullptr, "GetAbstractedPadsState"}, 1645 {303, nullptr, "GetAbstractedPadsState"},
@@ -1652,12 +1660,16 @@ public:
1652 {401, nullptr, "DisableRailDeviceFiltering"}, 1660 {401, nullptr, "DisableRailDeviceFiltering"},
1653 {402, nullptr, "EnableWiredPairing"}, 1661 {402, nullptr, "EnableWiredPairing"},
1654 {403, nullptr, "EnableShipmentModeAutoClear"}, 1662 {403, nullptr, "EnableShipmentModeAutoClear"},
1663 {404, nullptr, "SetRailEnabled"},
1655 {500, nullptr, "SetFactoryInt"}, 1664 {500, nullptr, "SetFactoryInt"},
1656 {501, nullptr, "IsFactoryBootEnabled"}, 1665 {501, nullptr, "IsFactoryBootEnabled"},
1657 {550, nullptr, "SetAnalogStickModelDataTemporarily"}, 1666 {550, nullptr, "SetAnalogStickModelDataTemporarily"},
1658 {551, nullptr, "GetAnalogStickModelData"}, 1667 {551, nullptr, "GetAnalogStickModelData"},
1659 {552, nullptr, "ResetAnalogStickModelData"}, 1668 {552, nullptr, "ResetAnalogStickModelData"},
1660 {600, nullptr, "ConvertPadState"}, 1669 {600, nullptr, "ConvertPadState"},
1670 {650, nullptr, "AddButtonPlayData"},
1671 {651, nullptr, "StartButtonPlayData"},
1672 {652, nullptr, "StopButtonPlayData"},
1661 {2000, nullptr, "DeactivateDigitizer"}, 1673 {2000, nullptr, "DeactivateDigitizer"},
1662 {2001, nullptr, "SetDigitizerAutoPilotState"}, 1674 {2001, nullptr, "SetDigitizerAutoPilotState"},
1663 {2002, nullptr, "UnsetDigitizerAutoPilotState"}, 1675 {2002, nullptr, "UnsetDigitizerAutoPilotState"},
@@ -1689,6 +1701,8 @@ public:
1689 {215, nullptr, "IsNfcActivated"}, 1701 {215, nullptr, "IsNfcActivated"},
1690 {230, nullptr, "AcquireIrSensorEventHandle"}, 1702 {230, nullptr, "AcquireIrSensorEventHandle"},
1691 {231, nullptr, "ActivateIrSensor"}, 1703 {231, nullptr, "ActivateIrSensor"},
1704 {232, nullptr, "GetIrSensorState"},
1705 {233, nullptr, "GetXcdHandleForNpadWithIrSensor"},
1692 {301, nullptr, "ActivateNpadSystem"}, 1706 {301, nullptr, "ActivateNpadSystem"},
1693 {303, nullptr, "ApplyNpadSystemCommonPolicy"}, 1707 {303, nullptr, "ApplyNpadSystemCommonPolicy"},
1694 {304, nullptr, "EnableAssigningSingleOnSlSrPress"}, 1708 {304, nullptr, "EnableAssigningSingleOnSlSrPress"},
@@ -1703,9 +1717,16 @@ public:
1703 {313, nullptr, "GetNpadCaptureButtonAssignment"}, 1717 {313, nullptr, "GetNpadCaptureButtonAssignment"},
1704 {314, nullptr, "GetAppletFooterUiType"}, 1718 {314, nullptr, "GetAppletFooterUiType"},
1705 {315, nullptr, "GetAppletDetailedUiType"}, 1719 {315, nullptr, "GetAppletDetailedUiType"},
1720 {316, nullptr, "GetNpadInterfaceType"},
1721 {317, nullptr, "GetNpadLeftRightInterfaceType"},
1722 {318, nullptr, "HasBattery"},
1723 {319, nullptr, "HasLeftRightBattery"},
1706 {321, nullptr, "GetUniquePadsFromNpad"}, 1724 {321, nullptr, "GetUniquePadsFromNpad"},
1707 {322, nullptr, "GetIrSensorState"}, 1725 {322, nullptr, "GetIrSensorState"},
1708 {323, nullptr, "GetXcdHandleForNpadWithIrSensor"}, 1726 {323, nullptr, "GetXcdHandleForNpadWithIrSensor"},
1727 {324, nullptr, "GetUniquePadButtonSet"},
1728 {325, nullptr, "GetUniquePadColor"},
1729 {326, nullptr, "GetUniquePadAppletDetailedUiType"},
1709 {500, nullptr, "SetAppletResourceUserId"}, 1730 {500, nullptr, "SetAppletResourceUserId"},
1710 {501, nullptr, "RegisterAppletResourceUserId"}, 1731 {501, nullptr, "RegisterAppletResourceUserId"},
1711 {502, nullptr, "UnregisterAppletResourceUserId"}, 1732 {502, nullptr, "UnregisterAppletResourceUserId"},
@@ -1716,10 +1737,13 @@ public:
1716 {511, nullptr, "GetVibrationMasterVolume"}, 1737 {511, nullptr, "GetVibrationMasterVolume"},
1717 {512, nullptr, "BeginPermitVibrationSession"}, 1738 {512, nullptr, "BeginPermitVibrationSession"},
1718 {513, nullptr, "EndPermitVibrationSession"}, 1739 {513, nullptr, "EndPermitVibrationSession"},
1740 {514, nullptr, "Unknown514"},
1719 {520, nullptr, "EnableHandheldHids"}, 1741 {520, nullptr, "EnableHandheldHids"},
1720 {521, nullptr, "DisableHandheldHids"}, 1742 {521, nullptr, "DisableHandheldHids"},
1721 {522, nullptr, "SetJoyConRailEnabled"}, 1743 {522, nullptr, "SetJoyConRailEnabled"},
1722 {523, nullptr, "IsJoyConRailEnabled"}, 1744 {523, nullptr, "IsJoyConRailEnabled"},
1745 {524, nullptr, "IsHandheldHidsEnabled"},
1746 {525, nullptr, "IsJoyConAttachedOnAllRail"},
1723 {540, nullptr, "AcquirePlayReportControllerUsageUpdateEvent"}, 1747 {540, nullptr, "AcquirePlayReportControllerUsageUpdateEvent"},
1724 {541, nullptr, "GetPlayReportControllerUsages"}, 1748 {541, nullptr, "GetPlayReportControllerUsages"},
1725 {542, nullptr, "AcquirePlayReportRegisteredDeviceUpdateEvent"}, 1749 {542, nullptr, "AcquirePlayReportRegisteredDeviceUpdateEvent"},
@@ -1795,6 +1819,65 @@ public:
1795 {1154, nullptr, "IsFirmwareAvailableForNotification"}, 1819 {1154, nullptr, "IsFirmwareAvailableForNotification"},
1796 {1155, nullptr, "SetForceHandheldStyleVibration"}, 1820 {1155, nullptr, "SetForceHandheldStyleVibration"},
1797 {1156, nullptr, "SendConnectionTriggerWithoutTimeoutEvent"}, 1821 {1156, nullptr, "SendConnectionTriggerWithoutTimeoutEvent"},
1822 {1157, nullptr, "CancelConnectionTrigger"},
1823 {1200, nullptr, "IsButtonConfigSupported"},
1824 {1201, nullptr, "IsButtonConfigEmbeddedSupported"},
1825 {1202, nullptr, "DeleteButtonConfig"},
1826 {1203, nullptr, "DeleteButtonConfigEmbedded"},
1827 {1204, nullptr, "SetButtonConfigEnabled"},
1828 {1205, nullptr, "SetButtonConfigEmbeddedEnabled"},
1829 {1206, nullptr, "IsButtonConfigEnabled"},
1830 {1207, nullptr, "IsButtonConfigEmbeddedEnabled"},
1831 {1208, nullptr, "SetButtonConfigEmbedded"},
1832 {1209, nullptr, "SetButtonConfigFull"},
1833 {1210, nullptr, "SetButtonConfigLeft"},
1834 {1211, nullptr, "SetButtonConfigRight"},
1835 {1212, nullptr, "GetButtonConfigEmbedded"},
1836 {1213, nullptr, "GetButtonConfigFull"},
1837 {1214, nullptr, "GetButtonConfigLeft"},
1838 {1215, nullptr, "GetButtonConfigRight"},
1839 {1250, nullptr, "IsCustomButtonConfigSupported"},
1840 {1251, nullptr, "IsDefaultButtonConfigEmbedded"},
1841 {1252, nullptr, "IsDefaultButtonConfigFull"},
1842 {1253, nullptr, "IsDefaultButtonConfigLeft"},
1843 {1254, nullptr, "IsDefaultButtonConfigRight"},
1844 {1255, nullptr, "IsButtonConfigStorageEmbeddedEmpty"},
1845 {1256, nullptr, "IsButtonConfigStorageFullEmpty"},
1846 {1257, nullptr, "IsButtonConfigStorageLeftEmpty"},
1847 {1258, nullptr, "IsButtonConfigStorageRightEmpty"},
1848 {1259, nullptr, "GetButtonConfigStorageEmbeddedDeprecated"},
1849 {1260, nullptr, "GetButtonConfigStorageFullDeprecated"},
1850 {1261, nullptr, "GetButtonConfigStorageLeftDeprecated"},
1851 {1262, nullptr, "GetButtonConfigStorageRightDeprecated"},
1852 {1263, nullptr, "SetButtonConfigStorageEmbeddedDeprecated"},
1853 {1264, nullptr, "SetButtonConfigStorageFullDeprecated"},
1854 {1265, nullptr, "SetButtonConfigStorageLeftDeprecated"},
1855 {1266, nullptr, "SetButtonConfigStorageRightDeprecated"},
1856 {1267, nullptr, "DeleteButtonConfigStorageEmbedded"},
1857 {1268, nullptr, "DeleteButtonConfigStorageFull"},
1858 {1269, nullptr, "DeleteButtonConfigStorageLeft"},
1859 {1270, nullptr, "DeleteButtonConfigStorageRight"},
1860 {1271, nullptr, "IsUsingCustomButtonConfig"},
1861 {1272, nullptr, "IsAnyCustomButtonConfigEnabled"},
1862 {1273, nullptr, "SetAllCustomButtonConfigEnabled"},
1863 {1274, nullptr, "SetDefaultButtonConfig"},
1864 {1275, nullptr, "SetAllDefaultButtonConfig"},
1865 {1276, nullptr, "SetHidButtonConfigEmbedded"},
1866 {1277, nullptr, "SetHidButtonConfigFull"},
1867 {1278, nullptr, "SetHidButtonConfigLeft"},
1868 {1279, nullptr, "SetHidButtonConfigRight"},
1869 {1280, nullptr, "GetHidButtonConfigEmbedded"},
1870 {1281, nullptr, "GetHidButtonConfigFull"},
1871 {1282, nullptr, "GetHidButtonConfigLeft"},
1872 {1283, nullptr, "GetHidButtonConfigRight"},
1873 {1284, nullptr, "GetButtonConfigStorageEmbedded"},
1874 {1285, nullptr, "GetButtonConfigStorageFull"},
1875 {1286, nullptr, "GetButtonConfigStorageLeft"},
1876 {1287, nullptr, "GetButtonConfigStorageRight"},
1877 {1288, nullptr, "SetButtonConfigStorageEmbedded"},
1878 {1289, nullptr, "SetButtonConfigStorageFull"},
1879 {1290, nullptr, "DeleteButtonConfigStorageRight"},
1880 {1291, nullptr, "DeleteButtonConfigStorageRight"},
1798 }; 1881 };
1799 // clang-format on 1882 // clang-format on
1800 1883
diff --git a/src/core/hle/service/hid/xcd.cpp b/src/core/hle/service/hid/xcd.cpp
index 43a8840d0..b1efa3d05 100644
--- a/src/core/hle/service/hid/xcd.cpp
+++ b/src/core/hle/service/hid/xcd.cpp
@@ -28,6 +28,8 @@ XCD_SYS::XCD_SYS(Core::System& system_) : ServiceFramework{system_, "xcd:sys"} {
28 {20, nullptr, "StartMifareWrite"}, 28 {20, nullptr, "StartMifareWrite"},
29 {101, nullptr, "GetAwakeTriggerReasonForLeftRail"}, 29 {101, nullptr, "GetAwakeTriggerReasonForLeftRail"},
30 {102, nullptr, "GetAwakeTriggerReasonForRightRail"}, 30 {102, nullptr, "GetAwakeTriggerReasonForRightRail"},
31 {103, nullptr, "GetAwakeTriggerBatteryLevelTransitionForLeftRail"},
32 {104, nullptr, "GetAwakeTriggerBatteryLevelTransitionForRightRail"},
31 }; 33 };
32 // clang-format on 34 // clang-format on
33 35