This example will create a HID class USB mouse on the host computer and emulate a trackpad on the mXT143E Xplained.
The maXTouch component API can be found here, while the graphics service API can be found here.
This example has been tested with the mXT143E Xplained on the following kits:
When the Xplained board is connected to a host computer supporting the USB HID class, it will create a mouse device. The mXT143E Xplained's display will then function as a trackpad, with visualization of the touch's trail.
The first finger on the trackpad will move the cursor and the second finger will emulate a left or right click, depending on whether the second finger touches on the left or right side of the first finger.
This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.
For further information, visit Microchip.