From 69fb51eef3505571a3d941f61b0bda44a1798698 Mon Sep 17 00:00:00 2001 From: CT5 Date: Mon, 3 Nov 2025 12:28:50 +1100 Subject: [PATCH] Enhance Gamepad header with new includes Added additional includes for Windows and WinRT UI. --- dlls/winrt_x/Implementation/Windows.Xbox.Input.Gamepad.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/winrt_x/Implementation/Windows.Xbox.Input.Gamepad.h b/dlls/winrt_x/Implementation/Windows.Xbox.Input.Gamepad.h index 189829b..e908557 100644 --- a/dlls/winrt_x/Implementation/Windows.Xbox.Input.Gamepad.h +++ b/dlls/winrt_x/Implementation/Windows.Xbox.Input.Gamepad.h @@ -1,9 +1,12 @@ #pragma once #include "Windows.Xbox.Input.Gamepad.g.h" #include +#include +#include namespace winrt::Windows::Xbox::Input::implementation { + struct Gamepad : GamepadT { Gamepad() = default; @@ -29,6 +32,8 @@ namespace winrt::Windows::Xbox::Input::implementation bool IsTrusted(); inline static winrt::Windows::Foundation::Collections::IVector staticGamepads = { nullptr }; uint64_t m_id{ 0 }; + float lastX = 0; + float lastY = 0; inline static std::pair const gamepadButtons[] = {