Thanks Tim and Philip for your excellent help! All i had to do was cobble togetther the basic example from
http://msdn.microsoft.com/en-us/libr...174(VS.85).asp
along with the installation instructions
Replaced the HIDs with the particular Microsoft Wheel mouse HID and installed the winusb driver
The guts it in this bit of code. The Device only had one endpoint so there was not much choice thankfully
[code
while(bResult = WinUsb_ReadPipe(hDeviceHandle, *pID, (UCHAR*)&info, sizeof(info), &cbRead, 0)
if(cbRead > 0
printf("X move %d Y move %d buttons %u wheel direction %d\n",info.xmotion,info.ymotion,info.status,info.w heel)
[/code
So thats is the first part of my project completed
I have 2 more parts but i am starting to fear, the bit i thought would be the easiest, is actually the hardest
Now i need to create a virtual MIDI device. This i will use to present my midi events to a port that can be enumerated on the system by a sequencer or virtual instrument that uses MIDI as a controller
I thought i could somehow use winmm.dll to create the virtual device but i cant see how
i can call midiOutShortMsg(...) to send my events. But the virtual instruments are not MIDI out sources so they do not have a device id for a midi out device
The closest I have got is looking at the mpu401 and uart examples in the DDK. But thats scary back to KM again. Yuk. Too hard to debug
You guys are certainly know your stuff, and was wondering if you could give me some advice on the easiest way send my midi events to a midi port that could be selected by a MIDI application
(I could have used MIDI Mapper pre Windows 7 but its Gone to i can't route the events to the consuming application. But i certainly would prefer my own vertual port.)