Browse Source

Report number of fingers supported by USB Touchscreen

teensy4-core
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

} }
break; break;
#endif #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: default:
endpoint0_stall(); endpoint0_stall();
return; return;

Loading…
Cancel
Save