diff --git a/app/src/main/cpp/skyline/services/hid/IHidServer.cpp b/app/src/main/cpp/skyline/services/hid/IHidServer.cpp index ac30b20d..c24826c2 100644 --- a/app/src/main/cpp/skyline/services/hid/IHidServer.cpp +++ b/app/src/main/cpp/skyline/services/hid/IHidServer.cpp @@ -254,6 +254,11 @@ namespace skyline::service::hid { return {}; } + Result IHidServer::IsVibrationPermitted(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { + response.Push(0); + return {}; + } + Result IHidServer::SetPalmaBoostMode(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { return {}; } diff --git a/app/src/main/cpp/skyline/services/hid/IHidServer.h b/app/src/main/cpp/skyline/services/hid/IHidServer.h index 91ffd195..ebeb26fd 100644 --- a/app/src/main/cpp/skyline/services/hid/IHidServer.h +++ b/app/src/main/cpp/skyline/services/hid/IHidServer.h @@ -183,6 +183,11 @@ namespace skyline::service::hid { */ Result SendVibrationValues(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** + * @url https://switchbrew.org/wiki/HID_services#IsVibrationPermitted + */ + Result IsVibrationPermitted(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); + /** * @brief Sets boost mode to a Palma device * @url https://switchbrew.org/wiki/HID_services#SetPalmaBoostMode @@ -219,6 +224,7 @@ namespace skyline::service::hid { SFUNC(0xC8, IHidServer, GetVibrationDeviceInfo), SFUNC(0xC9, IHidServer, SendVibrationValue), SFUNC(0xCE, IHidServer, SendVibrationValues), + SFUNC(0xCD, IHidServer, IsVibrationPermitted), SFUNC(0x20D, IHidServer, SetPalmaBoostMode) ) };