From d6dad8b44a01ffa7a24a50fd5deda29c03860c1e Mon Sep 17 00:00:00 2001 From: Kaz Wolfe Date: Fri, 15 Nov 2024 00:20:51 -0800 Subject: [PATCH] fix gamepad inputs for imgui --- Dalamud/Game/ClientState/GamePad/GamepadInput.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dalamud/Game/ClientState/GamePad/GamepadInput.cs b/Dalamud/Game/ClientState/GamePad/GamepadInput.cs index 32439cd08..d9dcea60f 100644 --- a/Dalamud/Game/ClientState/GamePad/GamepadInput.cs +++ b/Dalamud/Game/ClientState/GamePad/GamepadInput.cs @@ -16,25 +16,25 @@ public struct GamepadInput /// /// Left analogue stick's horizontal value, -99 for left, 99 for right. /// - [FieldOffset(0x88)] + [FieldOffset(0x78)] public int LeftStickX; /// /// Left analogue stick's vertical value, -99 for down, 99 for up. /// - [FieldOffset(0x8C)] + [FieldOffset(0x7C)] public int LeftStickY; /// /// Right analogue stick's horizontal value, -99 for left, 99 for right. /// - [FieldOffset(0x90)] + [FieldOffset(0x80)] public int RightStickX; /// /// Right analogue stick's vertical value, -99 for down, 99 for up. /// - [FieldOffset(0x94)] + [FieldOffset(0x84)] public int RightStickY; /// @@ -43,7 +43,7 @@ public struct GamepadInput /// /// This is a bitfield. /// - [FieldOffset(0x98)] + [FieldOffset(0x88)] public ushort ButtonsRaw; /// @@ -52,7 +52,7 @@ public struct GamepadInput /// /// This is a bitfield. /// - [FieldOffset(0x9C)] + [FieldOffset(0x8C)] public ushort ButtonsPressed; /// @@ -61,7 +61,7 @@ public struct GamepadInput /// /// This is a bitfield. /// - [FieldOffset(0xA0)] + [FieldOffset(0x90)] public ushort ButtonsReleased; /// @@ -70,6 +70,6 @@ public struct GamepadInput /// /// This is a bitfield. /// - [FieldOffset(0xA4)] + [FieldOffset(0x94)] public ushort ButtonsRepeat; }