diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-11-20 23:53:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 23:53:33 +0100 |
commit | 8da5bd27e9d4fe5e850700039d79f77e52ba6aea (patch) | |
tree | f7092ca45b92aa83ef636cc13f970cd3561ba93e /src/core/hle/service/hid/controllers/npad.cpp | |
parent | Merge pull request #12093 from t895/zip-intent (diff) | |
parent | Implemented qlaunch version of the controller applet (diff) | |
download | yuzu-8da5bd27e9d4fe5e850700039d79f77e52ba6aea.tar yuzu-8da5bd27e9d4fe5e850700039d79f77e52ba6aea.tar.gz yuzu-8da5bd27e9d4fe5e850700039d79f77e52ba6aea.tar.bz2 yuzu-8da5bd27e9d4fe5e850700039d79f77e52ba6aea.tar.lz yuzu-8da5bd27e9d4fe5e850700039d79f77e52ba6aea.tar.xz yuzu-8da5bd27e9d4fe5e850700039d79f77e52ba6aea.tar.zst yuzu-8da5bd27e9d4fe5e850700039d79f77e52ba6aea.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index d46bf917e..127af2b82 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp @@ -344,6 +344,7 @@ void Controller_NPad::InitNewlyAddedController(Core::HID::NpadIdType npad_id) { controller.device->SetPollingMode(Core::HID::EmulatedDeviceIndex::AllDevices, Common::Input::PollingMode::Active); } + SignalStyleSetChangedEvent(npad_id); WriteEmptyEntry(controller.shared_memory); hid_core.SetLastActiveController(npad_id); @@ -1726,4 +1727,19 @@ const Controller_NPad::SixaxisParameters& Controller_NPad::GetSixaxisState( } } +Controller_NPad::AppletDetailedUiType Controller_NPad::GetAppletDetailedUiType( + Core::HID::NpadIdType npad_id) { + + auto controller = GetControllerFromNpadIdType(npad_id); + auto shared_memory = controller.shared_memory; + Service::HID::Controller_NPad::AppletFooterUiType applet_footer_type = + shared_memory->applet_footer_type; + + Controller_NPad::AppletDetailedUiType detailed_ui_type{ + .ui_variant = 0, + .footer = applet_footer_type, + }; + return detailed_ui_type; +} + } // namespace Service::HID |