mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 20:31:48 +01:00
Stub IsSixAxisSensorAtRest
This commit is contained in:
parent
6719572b3b
commit
b5446846f7
@ -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};
|
||||||
|
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user