diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-12-24 16:19:16 -0500 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-12-28 15:32:03 -0500 |
| commit | 621b25b6be99d357c9996fcb2df77f42c7dc2001 (patch) | |
| tree | 247cd25071b9e08657e1269e5f307b3c55b442ed /src/core/hle/service/hid/controllers/npad.h | |
| parent | abbcc8e61e33ba093df9c823a03c70eccf010e4c (diff) | |
hid: Make Hid service accessible and add GetPressState
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< |
