From 7fc64a27b4a0b5819746d5f58746ae83181670e4 Mon Sep 17 00:00:00 2001 From: Unrud Date: Mon, 5 Aug 2024 19:23:15 +0200 Subject: [PATCH] machine/usb/descriptor: Drop second joystick hat --- src/machine/usb/descriptor/joystick.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/machine/usb/descriptor/joystick.go b/src/machine/usb/descriptor/joystick.go index 03bde2590..0fe67a817 100644 --- a/src/machine/usb/descriptor/joystick.go +++ b/src/machine/usb/descriptor/joystick.go @@ -95,14 +95,9 @@ var JoystickDefaultHIDReport = Append([][]byte{ HIDReportSize(4), HIDInputDataVarAbs, HIDUsageDesktopHatSwitch, - HIDLogicalMinimum(0), - HIDLogicalMaximum(7), - HIDPhysicalMinimum(0), - HIDPhysicalMaximum(315), - HIDUnit(0x14), HIDReportCount(1), HIDReportSize(4), - HIDInputDataVarAbs, + HIDInputConstVarAbs, HIDUsageDesktopPointer, HIDLogicalMinimum(-32767), HIDLogicalMaximum(32767),