Merge pull request #4139 from tgsm/hid-update-table

Service/HID: update function table
This commit is contained in:
Weiyi Wang 2018-09-04 01:47:26 +03:00 committed by GitHub
commit fffa55b5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ namespace HID {
Spvr::Spvr(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid:SPVR", 6) { Spvr::Spvr(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid:SPVR", 6) {
static const FunctionInfo functions[] = { static const FunctionInfo functions[] = {
{0x00010200, nullptr, "CalibrateTouchScreen"},
{0x00020000, nullptr, "UpdateTouchConfig"},
{0x000A0000, &Spvr::GetIPCHandles, "GetIPCHandles"}, {0x000A0000, &Spvr::GetIPCHandles, "GetIPCHandles"},
{0x000B0000, nullptr, "StartAnalogStickCalibration"}, {0x000B0000, nullptr, "StartAnalogStickCalibration"},
{0x000E0000, nullptr, "GetAnalogStickCalibrateParam"}, {0x000E0000, nullptr, "GetAnalogStickCalibrateParam"},

View File

@ -9,6 +9,8 @@ namespace HID {
User::User(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid:USER", 6) { User::User(std::shared_ptr<Module> hid) : Module::Interface(std::move(hid), "hid:USER", 6) {
static const FunctionInfo functions[] = { static const FunctionInfo functions[] = {
{0x00010200, nullptr, "CalibrateTouchScreen"},
{0x00020000, nullptr, "UpdateTouchConfig"},
{0x000A0000, &User::GetIPCHandles, "GetIPCHandles"}, {0x000A0000, &User::GetIPCHandles, "GetIPCHandles"},
{0x000B0000, nullptr, "StartAnalogStickCalibration"}, {0x000B0000, nullptr, "StartAnalogStickCalibration"},
{0x000E0000, nullptr, "GetAnalogStickCalibrateParam"}, {0x000E0000, nullptr, "GetAnalogStickCalibrateParam"},