Stub IsVibrationPermitted

This commit is contained in:
Dima 2022-11-28 22:03:44 +03:00 committed by Billy Laws
parent 51d1f519af
commit 5f510d84d7
2 changed files with 11 additions and 0 deletions

View File

@ -254,6 +254,11 @@ namespace skyline::service::hid {
return {};
}
Result IHidServer::IsVibrationPermitted(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u8>(0);
return {};
}
Result IHidServer::SetPalmaBoostMode(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
return {};
}

View File

@ -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)
)
};