summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/stubbed.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-09-21 03:31:06 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2021-11-25 03:30:23 +0100
commit072559dede9e4ab098b84f43ee6db31d3987b2c3 (patch)
tree816f8ab5425564c15d758e5c374acdefc466bd6b /src/core/hle/service/hid/controllers/stubbed.h
parentservice/hid: Use remove duplicated code, update names (diff)
downloadyuzu-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 'src/core/hle/service/hid/controllers/stubbed.h')
-rw-r--r--src/core/hle/service/hid/controllers/stubbed.h11
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{};
};