Is it possible to use the Mouse class with the Cerbuino Bee to emulate a mouse with the debug (client) port?
I need to be able to simulate a mouse plugged into a device but just send no position changes, ie, 0,0
I’ve included the code below and using a GPIO pin to select this, it doesn’t appear to work. In fact, it seems to bomb out with some exception when I call Controller.ActiveDevice = mouse; as the rest of my code stops working too.
Running with debug I see this but could be a false error as the USB is connected at the time the call is made.
A first chance exception of type ‘System.ArgumentException’ occurred in Microsoft.SPOT.Hardware.Usb.dll
An unhandled exception of type ‘System.ArgumentException’ occurred in Microsoft.SPOT.Hardware.Usb.dll