diff options
author | german77 <juangerman-13@hotmail.com> | 2024-01-29 02:19:21 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2024-01-29 02:28:37 +0100 |
commit | b8f16f3538fac8d4434905d531885b9862706bd0 (patch) | |
tree | 2e582d1d36fbc340f0175ad816362faccb20eee8 /src/hid_core/resources/shared_memory_format.h | |
parent | Merge pull request #12555 from flodavid/fix-gamemode-setting (diff) | |
download | yuzu-b8f16f3538fac8d4434905d531885b9862706bd0.tar yuzu-b8f16f3538fac8d4434905d531885b9862706bd0.tar.gz yuzu-b8f16f3538fac8d4434905d531885b9862706bd0.tar.bz2 yuzu-b8f16f3538fac8d4434905d531885b9862706bd0.tar.lz yuzu-b8f16f3538fac8d4434905d531885b9862706bd0.tar.xz yuzu-b8f16f3538fac8d4434905d531885b9862706bd0.tar.zst yuzu-b8f16f3538fac8d4434905d531885b9862706bd0.zip |
Diffstat (limited to 'src/hid_core/resources/shared_memory_format.h')
-rw-r--r-- | src/hid_core/resources/shared_memory_format.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/hid_core/resources/shared_memory_format.h b/src/hid_core/resources/shared_memory_format.h index 2ae0004ba..49755c8dc 100644 --- a/src/hid_core/resources/shared_memory_format.h +++ b/src/hid_core/resources/shared_memory_format.h @@ -12,6 +12,7 @@ #include "hid_core/resources/mouse/mouse_types.h" #include "hid_core/resources/npad/npad_types.h" #include "hid_core/resources/ring_lifo.h" +#include "hid_core/resources/system_buttons/system_button_types.h" #include "hid_core/resources/touch_screen/touch_types.h" namespace Service::HID { @@ -75,24 +76,24 @@ static_assert(sizeof(DigitizerSharedMemoryFormat) == 0x1000, // This is nn::hid::detail::HomeButtonSharedMemoryFormat struct HomeButtonSharedMemoryFormat { - CommonHeader header; - INSERT_PADDING_BYTES(0x1E0); + Lifo<HomeButtonState, HidEntryCount> home_lifo{}; + INSERT_PADDING_BYTES(0x48); }; static_assert(sizeof(HomeButtonSharedMemoryFormat) == 0x200, "HomeButtonSharedMemoryFormat is an invalid size"); // This is nn::hid::detail::SleepButtonSharedMemoryFormat struct SleepButtonSharedMemoryFormat { - CommonHeader header; - INSERT_PADDING_BYTES(0x1E0); + Lifo<SleepButtonState, HidEntryCount> sleep_lifo{}; + INSERT_PADDING_BYTES(0x48); }; static_assert(sizeof(SleepButtonSharedMemoryFormat) == 0x200, "SleepButtonSharedMemoryFormat is an invalid size"); // This is nn::hid::detail::CaptureButtonSharedMemoryFormat struct CaptureButtonSharedMemoryFormat { - CommonHeader header; - INSERT_PADDING_BYTES(0x1E0); + Lifo<CaptureButtonState, HidEntryCount> capture_lifo{}; + INSERT_PADDING_BYTES(0x48); }; static_assert(sizeof(CaptureButtonSharedMemoryFormat) == 0x200, "CaptureButtonSharedMemoryFormat is an invalid size"); |