From 62bbf51bbc23298a103c96455ac07998e16695de Mon Sep 17 00:00:00 2001 From: ParantezTech <12572227+par274@users.noreply.github.com> Date: Thu, 8 Oct 2026 23:44:40 +0300 Subject: [PATCH] [Pad] Write the device class extended information at its guest size Co-authored-by: Sekai <140012992+SekaixX@users.noreply.github.com> --- src/SharpEmu.Libs/Pad/PadExports.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharpEmu.Libs/Pad/PadExports.cs b/src/SharpEmu.Libs/Pad/PadExports.cs index ed2976a..614f805 100644 --- a/src/SharpEmu.Libs/Pad/PadExports.cs +++ b/src/SharpEmu.Libs/Pad/PadExports.cs @@ -347,7 +347,7 @@ public static class PadExports // (DualSense). We emulate no special peripheral (guitar/drums/wheel), so // the class-data union stays zeroed — the guest treats it as a plain // controller with no extended capabilities. - Span information = stackalloc byte[0x20]; + Span information = stackalloc byte[0x14]; information.Clear(); BinaryPrimitives.WriteInt32LittleEndian(information[0x00..], 0);