Question

I'm using the MultiPoint SDK to create a collaborative educational application for children in less affluent countries, where there is not one computer for each student in the classroom.

Because we need to support up to 40 mice connected to one computer, we need an automated way to test our software. The SDK will support as many mice that it can find on the system and detects when mice are added and removed. Each mouse appears as a 'virtual' mouse pointer within a WPF window. Each child has independent control of 'their' pointer on the screen.

We would like to create a test harness that tricks Windows into thinking that it has more than one mouse. The harness would need to create these fake devices (40+) and use them to send mouse messages like move, button down, etc

Any help would be greatly appreciated.

Was it helpful?

Solution

Faking mice to the extent that you'd need for MultiPoint is going to require a device driver. This is not an easy task, but is by no means impossible.

The best approach would probably be a HID minidriver that you can install using the Setup API. The driver would then accept DeviceIoControls which would cause it to simulate mouse input reports.

OTHER TIPS

you could use dsf(device simulation framework) in the ddk(driver development kit) for windows to add an emulated device dont worry its samples are in vbscript and you just need to figure out the correct input report format and codes to send.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top