PaulStoffregen / USBHost_t36

USB Host Library for Teensy 3.6 and 4.0
171 stars 87 forks source link

Can't figure out how to get buttons beyond 32 #94

Open LegacyMecha opened 2 years ago

LegacyMecha commented 2 years ago

I have the Logitech Extreme 3D Pro joystick and can't seem to figure out how to access the throttle value that shows up in buttons 54-61 (as an 8-bit number). I see it in the HID dump as buttons 54 through 61 as bits, but how can that button data be accessed in code? Running the demo Joystick doesn't show the button data for 54-61.

HID(10004) Begin topusage:10000 type:2 min:0 max:1023 usage=10030, value=512(X) usage=10031, value=512(Y) Begin topusage:10000 type:42 min:0 max:7 usage=10039, value=8(Hat) Begin topusage:10000 type:2 min:0 max:255 usage=10035, value=127(Rz) Begin topusage:10000 type:2 min:0 max:1 usage=90001, value=0 (BUTTON 1) usage=90002, value=0 (BUTTON 2) usage=90003, value=0 (BUTTON 3) usage=90004, value=0 (BUTTON 4) usage=90005, value=0 (BUTTON 5) usage=90006, value=0 (BUTTON 6) usage=90007, value=0 (BUTTON 7) usage=90008, value=0 (BUTTON 8) Begin topusage:10000 type:2 min:0 max:1 usage=90036, value=0 (BUTTON 54) usage=90037, value=0 (BUTTON 55) usage=90038, value=0 (BUTTON 56) usage=90039, value=0 (BUTTON 57) usage=9003A, value=0 (BUTTON 58) usage=9003B, value=0 (BUTTON 59) usage=9003C, value=0 (BUTTON 60) usage=9003D, value=0 (BUTTON 61) Begin topusage:10000 type:2 min:0 max:1 usage=90009, value=0 (BUTTON 9) usage=9000A, value=0 (BUTTON 10) usage=9000B, value=0 (BUTTON 11) usage=9000C, value=0 (BUTTON 12) END: