Sfoglia il codice sorgente

Report number of fingers supported by USB Touchscreen

main
PaulStoffregen 8 anni fa
parent
commit
051474da89
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. +13
    -0
      teensy3/usb_dev.c

+ 13
- 0
teensy3/usb_dev.c Vedi 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…
Annulla
Salva