Ever thought on building your own mouse from wires and micro controllers .If you have a USB supported MCU such as STM32F103 then you should think about it.Using STM32F103 for a mouse is of course Overkill.
that's why we are going to test it to its limits .At the end your device will show up as three devices in your device manager as a mouse,as a HID device which is touch screen device(will talk later) and one as a COM port for other purposes.
below are some snap shots of my screen.
that's why we are going to test it to its limits .At the end your device will show up as three devices in your device manager as a mouse,as a HID device which is touch screen device(will talk later) and one as a COM port for other purposes.
below are some snap shots of my screen.
As you can see it shows up as a Composite device with three sub device branches. and below is a picture of device manager
The device that we are using is stm32f103 and ST's USB FS Library.I started from Stm32 Virtual Com Port and heavily modified it.
1:Edit the desc.c , prop.c , & endp.c
2: Add IAD in the descriptors to make it as a Composite device.
3: Add Mouse report descriptors in the desc.c file.
4.Add HID_touch screen Report descriptors for touch screen reports also in desc.c file & modify prop.c file accordingly.
Since I am using windows 7 i have followed the Instructions of Microsoft given here
http://msdn.microsoft.com/en-us/library/windows/hardware/ff553737(v=vs.85).aspx
Below is a picture of my Touch screen Report Descriptor.
1:Edit the desc.c , prop.c , & endp.c
2: Add IAD in the descriptors to make it as a Composite device.
3: Add Mouse report descriptors in the desc.c file.
4.Add HID_touch screen Report descriptors for touch screen reports also in desc.c file & modify prop.c file accordingly.
Since I am using windows 7 i have followed the Instructions of Microsoft given here
http://msdn.microsoft.com/en-us/library/windows/hardware/ff553737(v=vs.85).aspx
Below is a picture of my Touch screen Report Descriptor.
Sorry but i can't post my codes here .mail me if you want the codes & for doubts comment below.