From e21f96ffde30d66337bd119c04a13f1025be159c Mon Sep 17 00:00:00 2001 From: FrozenAra Date: Mon, 27 Nov 2023 19:26:06 +0100 Subject: Fixed controller applet crashing when on FW17+ --- src/core/hle/service/hid/controllers/touchscreen.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/hle/service/hid/controllers/touchscreen.h') 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 fingers{}; + u32 touchscreen_width; + u32 touchscreen_height; }; } // namespace Service::HID -- cgit v1.2.3