Browse Source

Report number of fingers supported by USB Touchscreen

main
PaulStoffregen 8 years ago
parent
commit
051474da89
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      teensy3/usb_dev.c

+ 13
- 0
teensy3/usb_dev.c View File

@@ -447,6 +447,19 @@ static void usb_setup(void)
}
break;
#endif

#if defined(MULTITOUCH_INTERFACE)
case 0x01A1:
if (setup.wValue == 0x0300 && setup.wIndex == MULTITOUCH_INTERFACE) {
reply_buffer[0] = MULTITOUCH_FINGERS;
data = reply_buffer;
datalen = 1;
} else {
endpoint0_stall();
return;
}
break;
#endif
default:
endpoint0_stall();
return;

Loading…
Cancel
Save