diff options
author | bunnei <bunneidev@gmail.com> | 2019-01-10 23:04:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-10 23:04:38 +0100 |
commit | 83e8ad23310937bb72f4412c15f45231a19202f7 (patch) | |
tree | 80301af69b14a701f16e21d41ced436850085031 /src/core/hle/service/hid/controllers/npad.h | |
parent | Merge pull request #2010 from ReinUsesLisp/gmem (diff) | |
parent | build: Copy web engine resources to correct location (diff) | |
download | yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.tar yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.tar.gz yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.tar.bz2 yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.tar.lz yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.tar.xz yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.tar.zst yuzu-83e8ad23310937bb72f4412c15f45231a19202f7.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..106cf58c8 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 GetAndResetPressState(); + 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< |