diff options
| author | FrozenAra <macjordan02@googlemail.com> | 2023-11-27 19:26:06 +0100 |
|---|---|---|
| committer | FrozenAra <macjordan02@googlemail.com> | 2023-11-27 20:01:30 +0100 |
| commit | e21f96ffde30d66337bd119c04a13f1025be159c (patch) | |
| tree | 7a50d39041cde8bb3d74e8130a905c8f75d89702 /src/core/hle/service/hid/controllers/touchscreen.h | |
| parent | c7649a0cdb04d09978c599f9f42e410ed40af8ad (diff) | |
Fixed controller applet crashing when on FW17+
Diffstat (limited to 'src/core/hle/service/hid/controllers/touchscreen.h')
| -rw-r--r-- | src/core/hle/service/hid/controllers/touchscreen.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/touchscreen.h b/src/core/hle/service/hid/controllers/touchscreen.h index cd342ce91..79f026a81 100644 --- a/src/core/hle/service/hid/controllers/touchscreen.h +++ b/src/core/hle/service/hid/controllers/touchscreen.h @@ -28,6 +28,8 @@ public: // When the controller is requesting an update for the shared memory void OnUpdate(const Core::Timing::CoreTiming& core_timing) override; + void SetTouchscreenDimensions(u32 width, u32 height); + private: static constexpr std::size_t MAX_FINGERS = 16; @@ -53,5 +55,7 @@ private: Core::HID::EmulatedConsole* console = nullptr; std::array<Core::HID::TouchFinger, MAX_FINGERS> fingers{}; + u32 touchscreen_width; + u32 touchscreen_height; }; } // namespace Service::HID |
