aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorUnrud <[email protected]>2024-08-05 19:23:15 +0200
committerRon Evans <[email protected]>2024-08-14 18:43:27 +0200
commit7fc64a27b4a0b5819746d5f58746ae83181670e4 (patch)
treeb36c8dd9a1c30891dfa85a27de53d3833921ccea /src
parentc38bf27091b97af51c185e16538d73ba8b7a59fe (diff)
downloadtinygo-7fc64a27b4a0b5819746d5f58746ae83181670e4.tar.gz
tinygo-7fc64a27b4a0b5819746d5f58746ae83181670e4.zip
machine/usb/descriptor: Drop second joystick hat
Diffstat (limited to 'src')
-rw-r--r--src/machine/usb/descriptor/joystick.go7
1 files changed, 1 insertions, 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),