mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 13:55:29 +03:00
Stub IsSixAxisSensorAtRest
This commit is contained in:
parent
6719572b3b
commit
b5446846f7
@ -41,6 +41,11 @@ namespace skyline::service::hid {
|
||||
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) {
|
||||
auto styleSet{request.Pop<NpadStyleSet>()};
|
||||
std::scoped_lock lock{state.input->npad.mutex};
|
||||
|
@ -57,6 +57,11 @@ namespace skyline::service::hid {
|
||||
*/
|
||||
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
|
||||
* @url https://switchbrew.org/wiki/HID_services#SetSupportedNpadStyleSet
|
||||
@ -192,6 +197,7 @@ namespace skyline::service::hid {
|
||||
SFUNC(0x1F, IHidServer, ActivateKeyboard),
|
||||
SFUNC(0x42, IHidServer, StartSixAxisSensor),
|
||||
SFUNC(0x43, IHidServer, StopSixAxisSensor),
|
||||
SFUNC(0x52, IHidServer, IsSixAxisSensorAtRest),
|
||||
SFUNC(0x64, IHidServer, SetSupportedNpadStyleSet),
|
||||
SFUNC(0x65, IHidServer, GetSupportedNpadStyleSet),
|
||||
SFUNC(0x66, IHidServer, SetSupportedNpadIdType),
|
||||
|
Loading…
Reference in New Issue
Block a user