If it were me, I'd start by outputting a signal on one of the PWM channels, and this would be one of the clips, and hook one of the ADC input channels to the other clip.
Then I'd see what kind of signals I read on the ADC and use some logic to determine if there was a change in resistance between the two, indicating that a connection had been made or broken. Then I'd send some data out the serial port, which is the only thing on the USB Client port.
It wouldn't emulate a mouse, unless it was emulating a serial mouse.
Thanks SpiderKenny - I came across this video https://www.youtube.com/watch?feature=player_detailpage&v=WDPTA0-fbNE
Which I'm trying now - this is kind of along the same direction right?
If you get a chance to watch the film, is there any reason you can see why this would not work on a Galileo?
thanks so much!
An approach similar to that will work but this is the biggest hurdle you will have:
The USB Client port on the Galileo is CDC, not HID and I don't see how it can be changed from within Arduino.
So the connect to the PC will be over a Serial COM Port, not a mouse/keyboard emulation.
Maybe someone else knows if the Arduino 'Keyboard' library will work, or if there is another solution?
Or maybe USB CDC (Serial COM) is ok for you?
There are a few capacitive touch libraries for the Arduino:
However, both use port manipulation commands specific to 8-bit microcontrollers. I've been looking for some alternatives but have yet to find any.