diff options
| author | 2018-05-30 20:09:21 +0200 | |
|---|---|---|
| committer | 2018-05-30 14:09:21 -0400 | |
| commit | 94fecef137eb8452cfb82caa38a9593eab3d46ea (patch) | |
| tree | 5795085ab66faa2a02d9faad2e2ee0cf8feb3e79 /src | |
| parent | Merge pull request #483 from bunnei/sonic (diff) | |
| download | yuzu-94fecef137eb8452cfb82caa38a9593eab3d46ea.tar.gz yuzu-94fecef137eb8452cfb82caa38a9593eab3d46ea.tar.xz yuzu-94fecef137eb8452cfb82caa38a9593eab3d46ea.zip | |
add IPC CommandType & Some HID FunctionInfo (#487)
* add some CommandType
* add some hid FunctionInfo
* add some other HID FunctionInfo
* delete non useful comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/ipc.h | 3 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 30 |
2 files changed, 33 insertions, 0 deletions
diff --git a/src/core/hle/ipc.h b/src/core/hle/ipc.h index c9257de77..eaa5395ac 100644 --- a/src/core/hle/ipc.h +++ b/src/core/hle/ipc.h | |||
| @@ -29,7 +29,10 @@ enum class ControlCommand : u32 { | |||
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | enum class CommandType : u32 { | 31 | enum class CommandType : u32 { |
| 32 | Invalid = 0, | ||
| 33 | LegacyRequest = 1, | ||
| 32 | Close = 2, | 34 | Close = 2, |
| 35 | LegacyControl = 3, | ||
| 33 | Request = 4, | 36 | Request = 4, |
| 34 | Control = 5, | 37 | Control = 5, |
| 35 | RequestWithContext = 6, | 38 | RequestWithContext = 6, |
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 1891255cb..00c5308ba 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -329,6 +329,7 @@ public: | |||
| 329 | {130, nullptr, "SwapNpadAssignment"}, | 329 | {130, nullptr, "SwapNpadAssignment"}, |
| 330 | {131, nullptr, "IsUnintendedHomeButtonInputProtectionEnabled"}, | 330 | {131, nullptr, "IsUnintendedHomeButtonInputProtectionEnabled"}, |
| 331 | {132, nullptr, "EnableUnintendedHomeButtonInputProtection"}, | 331 | {132, nullptr, "EnableUnintendedHomeButtonInputProtection"}, |
| 332 | {133, nullptr, "SetNpadJoyAssignmentModeSingleWithDestination"}, | ||
| 332 | {200, &Hid::GetVibrationDeviceInfo, "GetVibrationDeviceInfo"}, | 333 | {200, &Hid::GetVibrationDeviceInfo, "GetVibrationDeviceInfo"}, |
| 333 | {201, &Hid::SendVibrationValue, "SendVibrationValue"}, | 334 | {201, &Hid::SendVibrationValue, "SendVibrationValue"}, |
| 334 | {202, &Hid::GetActualVibrationValue, "GetActualVibrationValue"}, | 335 | {202, &Hid::GetActualVibrationValue, "GetActualVibrationValue"}, |
| @@ -336,12 +337,41 @@ public: | |||
| 336 | {204, nullptr, "PermitVibration"}, | 337 | {204, nullptr, "PermitVibration"}, |
| 337 | {205, nullptr, "IsVibrationPermitted"}, | 338 | {205, nullptr, "IsVibrationPermitted"}, |
| 338 | {206, &Hid::SendVibrationValues, "SendVibrationValues"}, | 339 | {206, &Hid::SendVibrationValues, "SendVibrationValues"}, |
| 340 | {207, nullptr, "SendVibrationGcErmCommand"}, | ||
| 341 | {208, nullptr, "GetActualVibrationGcErmCommand"}, | ||
| 342 | {209, nullptr, "BeginPermitVibrationSession"}, | ||
| 343 | {210, nullptr, "EndPermitVibrationSession"}, | ||
| 339 | {300, nullptr, "ActivateConsoleSixAxisSensor"}, | 344 | {300, nullptr, "ActivateConsoleSixAxisSensor"}, |
| 340 | {301, nullptr, "StartConsoleSixAxisSensor"}, | 345 | {301, nullptr, "StartConsoleSixAxisSensor"}, |
| 341 | {302, nullptr, "StopConsoleSixAxisSensor"}, | 346 | {302, nullptr, "StopConsoleSixAxisSensor"}, |
| 347 | {303, nullptr, "ActivateSevenSixAxisSensor"}, | ||
| 348 | {304, nullptr, "StartSevenSixAxisSensor"}, | ||
| 349 | {305, nullptr, "StopSevenSixAxisSensor"}, | ||
| 350 | {306, nullptr, "InitializeSevenSixAxisSensor"}, | ||
| 351 | {307, nullptr, "FinalizeSevenSixAxisSensor"}, | ||
| 352 | {308, nullptr, "SetSevenSixAxisSensorFusionStrength"}, | ||
| 353 | {309, nullptr, "GetSevenSixAxisSensorFusionStrength"}, | ||
| 342 | {400, nullptr, "IsUsbFullKeyControllerEnabled"}, | 354 | {400, nullptr, "IsUsbFullKeyControllerEnabled"}, |
| 343 | {401, nullptr, "EnableUsbFullKeyController"}, | 355 | {401, nullptr, "EnableUsbFullKeyController"}, |
| 344 | {402, nullptr, "IsUsbFullKeyControllerConnected"}, | 356 | {402, nullptr, "IsUsbFullKeyControllerConnected"}, |
| 357 | {403, nullptr, "HasBattery"}, | ||
| 358 | {404, nullptr, "HasLeftRightBattery"}, | ||
| 359 | {405, nullptr, "GetNpadInterfaceType"}, | ||
| 360 | {406, nullptr, "GetNpadLeftRightInterfaceType"}, | ||
| 361 | {500, nullptr, "GetPalmaConnectionHandle"}, | ||
| 362 | {501, nullptr, "InitializePalma"}, | ||
| 363 | {502, nullptr, "AcquirePalmaOperationCompleteEvent"}, | ||
| 364 | {503, nullptr, "GetPalmaOperationInfo"}, | ||
| 365 | {504, nullptr, "PlayPalmaActivity"}, | ||
| 366 | {505, nullptr, "SetPalmaFrModeType"}, | ||
| 367 | {506, nullptr, "ReadPalmaStep"}, | ||
| 368 | {507, nullptr, "EnablePalmaStep"}, | ||
| 369 | {508, nullptr, "SuspendPalmaStep"}, | ||
| 370 | {509, nullptr, "ResetPalmaStep"}, | ||
| 371 | {510, nullptr, "ReadPalmaApplicationSection"}, | ||
| 372 | {511, nullptr, "WritePalmaApplicationSection"}, | ||
| 373 | {512, nullptr, "ReadPalmaUniqueCode"}, | ||
| 374 | {513, nullptr, "SetPalmaUniqueCodeInvalid"}, | ||
| 345 | {1000, nullptr, "SetNpadCommunicationMode"}, | 375 | {1000, nullptr, "SetNpadCommunicationMode"}, |
| 346 | {1001, nullptr, "GetNpadCommunicationMode"}, | 376 | {1001, nullptr, "GetNpadCommunicationMode"}, |
| 347 | }; | 377 | }; |