diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 11 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid.h | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 5559587e3..c84cb1483 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -157,7 +157,7 @@ Hid::Hid(Core::System& system) : ServiceFramework("hid"), system(system) { | |||
| 157 | {11, &Hid::ActivateTouchScreen, "ActivateTouchScreen"}, | 157 | {11, &Hid::ActivateTouchScreen, "ActivateTouchScreen"}, |
| 158 | {21, &Hid::ActivateMouse, "ActivateMouse"}, | 158 | {21, &Hid::ActivateMouse, "ActivateMouse"}, |
| 159 | {31, &Hid::ActivateKeyboard, "ActivateKeyboard"}, | 159 | {31, &Hid::ActivateKeyboard, "ActivateKeyboard"}, |
| 160 | {32, nullptr, "SendKeyboardLockKeyEvent"}, | 160 | {32, &Hid::SendKeyboardLockKeyEvent, "SendKeyboardLockKeyEvent"}, |
| 161 | {40, nullptr, "AcquireXpadIdEventHandle"}, | 161 | {40, nullptr, "AcquireXpadIdEventHandle"}, |
| 162 | {41, nullptr, "ReleaseXpadIdEventHandle"}, | 162 | {41, nullptr, "ReleaseXpadIdEventHandle"}, |
| 163 | {51, &Hid::ActivateXpad, "ActivateXpad"}, | 163 | {51, &Hid::ActivateXpad, "ActivateXpad"}, |
| @@ -871,6 +871,15 @@ void Hid::InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx) { | |||
| 871 | rb.Push(RESULT_SUCCESS); | 871 | rb.Push(RESULT_SUCCESS); |
| 872 | } | 872 | } |
| 873 | 873 | ||
| 874 | void Hid::SendKeyboardLockKeyEvent(Kernel::HLERequestContext& ctx) { | ||
| 875 | IPC::RequestParser rp{ctx}; | ||
| 876 | const auto flags{rp.Pop<u32>()}; | ||
| 877 | LOG_WARNING(Service_HID, "(STUBBED) called. flags={}", flags); | ||
| 878 | |||
| 879 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 880 | rb.Push(RESULT_SUCCESS); | ||
| 881 | } | ||
| 882 | |||
| 874 | class HidDbg final : public ServiceFramework<HidDbg> { | 883 | class HidDbg final : public ServiceFramework<HidDbg> { |
| 875 | public: | 884 | public: |
| 876 | explicit HidDbg() : ServiceFramework{"hid:dbg"} { | 885 | explicit HidDbg() : ServiceFramework{"hid:dbg"} { |
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index 23552efb1..c8ed4ad8b 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h | |||
| @@ -130,6 +130,7 @@ private: | |||
| 130 | void SetPalmaBoostMode(Kernel::HLERequestContext& ctx); | 130 | void SetPalmaBoostMode(Kernel::HLERequestContext& ctx); |
| 131 | void StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx); | 131 | void StopSevenSixAxisSensor(Kernel::HLERequestContext& ctx); |
| 132 | void InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx); | 132 | void InitializeSevenSixAxisSensor(Kernel::HLERequestContext& ctx); |
| 133 | void SendKeyboardLockKeyEvent(Kernel::HLERequestContext& ctx); | ||
| 133 | 134 | ||
| 134 | std::shared_ptr<IAppletResource> applet_resource; | 135 | std::shared_ptr<IAppletResource> applet_resource; |
| 135 | Core::System& system; | 136 | Core::System& system; |