diff options
author | german77 <juangerman-13@hotmail.com> | 2021-09-21 03:31:06 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-25 03:30:23 +0100 |
commit | 072559dede9e4ab098b84f43ee6db31d3987b2c3 (patch) | |
tree | 816f8ab5425564c15d758e5c374acdefc466bd6b /src/core/hle/service/hid/controllers/stubbed.h | |
parent | service/hid: Use remove duplicated code, update names (diff) | |
download | yuzu-072559dede9e4ab098b84f43ee6db31d3987b2c3.tar yuzu-072559dede9e4ab098b84f43ee6db31d3987b2c3.tar.gz yuzu-072559dede9e4ab098b84f43ee6db31d3987b2c3.tar.bz2 yuzu-072559dede9e4ab098b84f43ee6db31d3987b2c3.tar.lz yuzu-072559dede9e4ab098b84f43ee6db31d3987b2c3.tar.xz yuzu-072559dede9e4ab098b84f43ee6db31d3987b2c3.tar.zst yuzu-072559dede9e4ab098b84f43ee6db31d3987b2c3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/stubbed.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/hle/service/hid/controllers/stubbed.h b/src/core/hle/service/hid/controllers/stubbed.h index 21092af0d..29f95a100 100644 --- a/src/core/hle/service/hid/controllers/stubbed.h +++ b/src/core/hle/service/hid/controllers/stubbed.h @@ -22,12 +22,17 @@ public: // When the controller is requesting an update for the shared memory void OnUpdate(const Core::Timing::CoreTiming& core_timing, u8* data, std::size_t size) override; - // Called when input devices should be loaded - void OnLoadInputDevices() override; - void SetCommonHeaderOffset(std::size_t off); private: + struct CommonHeader { + s64_le timestamp; + s64_le total_entry_count; + s64_le last_entry_index; + s64_le entry_count; + }; + static_assert(sizeof(CommonHeader) == 0x20, "CommonHeader is an invalid size"); + bool smart_update{}; std::size_t common_offset{}; }; |