Main Site Documentation

Sending keyboard input?


#1

Hello everyone,

I was wondering if it was possible to send basic keyboard input to my PC from my Gadgeteer hardware. For example, if I moved the joystick right, would it be possible to simulate a right-arrow key press on the computer? I very much doubt it, but any information would be great. Thanks!


#2

Yes you can. Take a look at USB client tutorial.


#3

Ok.

I read the tutorial, but I’m getting the InvalidOperationException error. Would this work with the USB transport setting in any way, or do I have to use serial? The reason I ask is that the device I’ve made does other things as well as trying to simulate the keyboard, and I wanted that to be an extra rather than the only thing it does.
Thanks for your help!


#4

Of course it will not work, as explained in the tutorial :slight_smile: If USB is used for something (debugging) then it can’t be used for other things (keyboard)