Martino Facchin
92a05d2e25
USB libraries: replace non-portable u8 with uint8_t
2015-09-04 16:12:56 +02:00
Cristian Maglie
2659ec6faa
Fixed library.properties for Mouse and Keyboard libraries
2015-07-21 16:40:18 +02:00
Martino Facchin
af290fc5a3
rework HID-based libraries and add Due fallback
2015-07-16 13:13:53 +02:00
Martino Facchin
e1a0350062
allow HID submodules to create runtime descriptors
...
with this PR you can add
\#include Keyboard.h
\#include Mouse.h
\#include HID.h
in the top of the sketch and you will expose a Mouse+Keyboard
From the library pow, simply add
static HID_Descriptor cb = {
.length = sizeof(_hidReportDescriptor),
.descriptor = _hidReportDescriptor,
};
static HIDDescriptorListNode node(&cb);
HID.AppendDescriptor(&node);
in the class' constructor and you are done!
2015-07-16 13:13:52 +02:00
Martino Facchin
5defaeaa97
rework HID class functions scopes
2015-07-16 13:13:52 +02:00
Martino Facchin
e211f1ea76
remove setupUSB weak hook and replace with global constructors
...
thanks @matthijskooijman
2015-07-16 13:13:49 +02:00
Martino Facchin
071323196d
enforce single use of HID submodule
2015-07-16 13:13:45 +02:00
Martino Facchin
344896ed70
Fix HID derived libraries and add automatic setupUSB() weak hook
2015-07-16 13:12:15 +02:00
Martino Facchin
c2a083b57b
standalone Mouse library
2015-07-16 13:12:14 +02:00
Tom Igoe
9af71ad6e8
Moved Mouse and Keyboard examples for Leonardo into the core examples folder
2011-11-28 15:03:06 -05:00
Tom Igoe
264724c451
Added joystick mouse control example in libraries/Mouse/examples
2011-09-15 19:37:20 -04:00