diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-24 22:19:16 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-12-28 21:32:03 +0100 |
commit | 621b25b6be99d357c9996fcb2df77f42c7dc2001 (patch) | |
tree | 247cd25071b9e08657e1269e5f307b3c55b442ed /src/core/hle/service/hid/controllers/npad.h | |
parent | romfs: Add SingleDiscard extraction type (diff) | |
download | yuzu-621b25b6be99d357c9996fcb2df77f42c7dc2001.tar yuzu-621b25b6be99d357c9996fcb2df77f42c7dc2001.tar.gz yuzu-621b25b6be99d357c9996fcb2df77f42c7dc2001.tar.bz2 yuzu-621b25b6be99d357c9996fcb2df77f42c7dc2001.tar.lz yuzu-621b25b6be99d357c9996fcb2df77f42c7dc2001.tar.xz yuzu-621b25b6be99d357c9996fcb2df77f42c7dc2001.tar.zst yuzu-621b25b6be99d357c9996fcb2df77f42c7dc2001.zip |
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index 29851f16a..6906d9ffb 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -124,6 +124,10 @@ public: void ConnectAllDisconnectedControllers(); void ClearAllControllers(); + // Logical OR for all buttons presses on all controllers + // Specifically for cheat engine and other features. + u32 GetPressState(); + static std::size_t NPadIdToIndex(u32 npad_id); static u32 IndexToNPad(std::size_t index); @@ -292,6 +296,8 @@ private: bool is_connected; }; + u32 press_state{}; + NPadType style{}; std::array<NPadEntry, 10> shared_memory_entries{}; std::array< |