diff options
| author | 2023-11-23 12:36:19 -0500 | |
|---|---|---|
| committer | 2023-11-23 12:36:19 -0500 | |
| commit | 0b766e4523dea156d69aab1a2a43b55f50c65071 (patch) | |
| tree | 44715eb026414d084f3f493f137b578339884a99 /src/core/memory | |
| parent | Merge pull request #12123 from merryhime/explicit-this (diff) | |
| parent | service: hid: Create appropriate hid resources (diff) | |
| download | yuzu-0b766e4523dea156d69aab1a2a43b55f50c65071.tar.gz yuzu-0b766e4523dea156d69aab1a2a43b55f50c65071.tar.xz yuzu-0b766e4523dea156d69aab1a2a43b55f50c65071.zip | |
Merge pull request #12076 from german77/resource
service: hid: Create appropriate hid resources
Diffstat (limited to 'src/core/memory')
| -rw-r--r-- | src/core/memory/cheat_engine.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index da140c01c..db30ba598 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp | |||
| @@ -68,10 +68,7 @@ u64 StandardVmCallbacks::HidKeysDown() { | |||
| 68 | return 0; | 68 | return 0; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | const auto press_state = | 71 | const auto press_state = applet_resource->GetNpad()->GetAndResetPressState(); |
| 72 | applet_resource | ||
| 73 | ->GetController<Service::HID::Controller_NPad>(Service::HID::HidController::NPad) | ||
| 74 | .GetAndResetPressState(); | ||
| 75 | return static_cast<u64>(press_state & HID::NpadButton::All); | 72 | return static_cast<u64>(press_state & HID::NpadButton::All); |
| 76 | } | 73 | } |
| 77 | 74 | ||