Stub IsSixAxisSensorAtRest

This commit is contained in:
Billy Laws 2022-10-09 13:03:05 +01:00
parent 6719572b3b
commit b5446846f7
2 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,11 @@ namespace skyline::service::hid {
return {}; return {};
} }
Result IHidServer::IsSixAxisSensorAtRest(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
response.Push<u8>(1);
return {};
}
Result IHidServer::SetSupportedNpadStyleSet(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) { Result IHidServer::SetSupportedNpadStyleSet(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response) {
auto styleSet{request.Pop<NpadStyleSet>()}; auto styleSet{request.Pop<NpadStyleSet>()};
std::scoped_lock lock{state.input->npad.mutex}; std::scoped_lock lock{state.input->npad.mutex};

View File

@ -57,6 +57,11 @@ namespace skyline::service::hid {
*/ */
Result StopSixAxisSensor(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response); Result StopSixAxisSensor(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/**
* @url https://switchbrew.org/wiki/HID_services#IsSixAxisSensorAtRest
*/
Result IsSixAxisSensorAtRest(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
/** /**
* @brief Sets the style of controllers supported * @brief Sets the style of controllers supported
* @url https://switchbrew.org/wiki/HID_services#SetSupportedNpadStyleSet * @url https://switchbrew.org/wiki/HID_services#SetSupportedNpadStyleSet
@ -192,6 +197,7 @@ namespace skyline::service::hid {
SFUNC(0x1F, IHidServer, ActivateKeyboard), SFUNC(0x1F, IHidServer, ActivateKeyboard),
SFUNC(0x42, IHidServer, StartSixAxisSensor), SFUNC(0x42, IHidServer, StartSixAxisSensor),
SFUNC(0x43, IHidServer, StopSixAxisSensor), SFUNC(0x43, IHidServer, StopSixAxisSensor),
SFUNC(0x52, IHidServer, IsSixAxisSensorAtRest),
SFUNC(0x64, IHidServer, SetSupportedNpadStyleSet), SFUNC(0x64, IHidServer, SetSupportedNpadStyleSet),
SFUNC(0x65, IHidServer, GetSupportedNpadStyleSet), SFUNC(0x65, IHidServer, GetSupportedNpadStyleSet),
SFUNC(0x66, IHidServer, SetSupportedNpadIdType), SFUNC(0x66, IHidServer, SetSupportedNpadIdType),