Example code for handling both keyboard AND mouse ? #17
Labels
topic: documentation
Related to documentation for the project
type: enhancement
Proposed improvement
I tried to merge the keyboard and mouse examples into one single example that would allow me to plug-in either a keyboard OR a mouse, without having to recompile each time I want to change between mouse and keyboard.
I tried the following, without success :
=> It seems this library doesn't support having two controllers on the same USBHost instance. Could you confirm that ?
Then I tried the following, which also didn't work :
=> Could you tell me which one of these two approaches should be the good one ? And then I suggest to add in the source code some assertions to avoid users making forbidden things (putting two controllers on the same USBHost instance and/or creating two USBHost instances at same time, etc.)
The idea behind that request, is I want to be able to use a mouse connected to my DUE, and sometimes, but rarely, I want to be able to disconnect the mouse, put a keyboard instead, type some phrase on it, and then remove it and plug-in the mouse again.
Thanks
The text was updated successfully, but these errors were encountered: