summaryrefslogtreecommitdiffstats
path: root/src/core/memory
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-11-30 00:23:52 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-11-30 01:21:51 +0100
commit322339a5fd4ed78826ecea42e71bc179afb7b5a7 (patch)
treef6b38e702674c524cc53a11f5c8705f6db0d415d /src/core/memory
parentcore: hid: hid_types: Add "All" to NpadButton (diff)
downloadyuzu-322339a5fd4ed78826ecea42e71bc179afb7b5a7.tar
yuzu-322339a5fd4ed78826ecea42e71bc179afb7b5a7.tar.gz
yuzu-322339a5fd4ed78826ecea42e71bc179afb7b5a7.tar.bz2
yuzu-322339a5fd4ed78826ecea42e71bc179afb7b5a7.tar.lz
yuzu-322339a5fd4ed78826ecea42e71bc179afb7b5a7.tar.xz
yuzu-322339a5fd4ed78826ecea42e71bc179afb7b5a7.tar.zst
yuzu-322339a5fd4ed78826ecea42e71bc179afb7b5a7.zip
Diffstat (limited to 'src/core/memory')
-rw-r--r--src/core/memory/cheat_engine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp
index 20f0e90f5..12446c9ac 100644
--- a/src/core/memory/cheat_engine.cpp
+++ b/src/core/memory/cheat_engine.cpp
@@ -19,7 +19,6 @@
namespace Core::Memory {
namespace {
constexpr auto CHEAT_ENGINE_NS = std::chrono::nanoseconds{1000000000 / 12};
-constexpr u32 KEYPAD_BITMASK = 0x3FFFFFF;
std::string_view ExtractName(std::string_view data, std::size_t start_index, char match) {
auto end_index = start_index;
@@ -61,7 +60,7 @@ u64 StandardVmCallbacks::HidKeysDown() {
applet_resource
->GetController<Service::HID::Controller_NPad>(Service::HID::HidController::NPad)
.GetAndResetPressState();
- return press_state & KEYPAD_BITMASK;
+ return static_cast<u64>(press_state & HID::NpadButton::All);
}
void StandardVmCallbacks::DebugLog(u8 id, u64 value) {