Commit graph

35 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
6c36eed239 Renamed USB class to USBHost, so it does not collide with the one defined in the Arduino Zero core
Also renamed the struct UsbDevice to UsbDeviceDefinition
2016-01-19 16:34:45 +01:00
Pavel Fatin
969eabb8d7 Compatibility with Arduino's core HID / Mouse / Keyboard libraries
The following collisions resolved:

hid.h -> usbhid.h
hid.cpp -> usbhid.cpp
HID -> USBHID
HID_BOOT_PROTOCOL -> USB_HID_BOOT_PROTOCOL
HID_PROTOCOL_NONE -> USB_HID_PROTOCOL_NONE
HID_PROTOCOL_KEYBOARD -> USB_HID_PROTOCOL_KEYBOARD
HID_PROTOCOL_MOUSE -> USB_HID_PROTOCOL_MOUSE

As a result, it's possible to use the library together with Arduino's bundled HID / Mouse / Keyboard libraries (Leonardo, Micro, or Due).

https://www.arduino.cc/en/Reference/MouseKeyboard
2016-01-16 20:34:16 +01:00
Kristian Sloth Lauszus
7e449d2d3a Replaced all double variables with float 2015-10-12 13:20:48 +02:00
Andrew J. Kroll
46dc4e6fec fix conflict, fix case on include for hid.h (regression?) 2015-03-14 04:54:28 -04:00
Kristian Sloth Lauszus
881c4df046 Merge branch 'master' into dev
Conflicts:
	BTD.h
	BTHID.h
	PS3BT.h
	SPP.h
	Wii.h
2015-02-24 01:28:28 +01:00
Kristian Sloth Lauszus
6047962d60 Merge branch 'xxxajk'
Conflicts:
	XBOXUSB.h
	examples/ftdi/USBFTDILoopback/USBFTDILoopback.ino
	hiduniversal.h
	settings.h
	usbhost.h
2015-02-22 18:25:22 +01:00
Andrew J. Kroll
bd8c8e7404 Fix use of "bool" so ARM compiles correctly 2015-02-19 03:14:39 -05:00
Andrew J. Kroll
196a0b69be Fix all demos, fix all wrong uses of virtual keyword, some spacing cleanup. 2014-11-10 01:35:13 -05:00
Kristian Lauszus
4a1940b99b Don't redefine HID parameters - just include Hid.h 2014-09-02 01:26:17 -07:00
Kristian Lauszus
bde11036a9 Endpoints types where already defined in usb_ch9.h, so no need to redefine them 2014-09-02 00:16:48 -07:00
Kristian Lauszus
1f33f2bd08 Renamed getStatusString() to printStatusString() 2014-01-04 14:14:22 +01:00
Kristian Lauszus
257c96f5c1 Can now turn LED off by calling setLedOn(OFF) for all controllers
Also renamed all enums, so they does not conflict with user code that easily
2014-01-04 13:43:49 +01:00
Andrew J. Kroll
f1af9b08ec Janitorial, whitespace fixes. No new code. 2013-12-25 05:09:57 -05:00
Kristian Lauszus
45465fa928 Fixed comment 2013-11-25 00:43:47 +01:00
Kristian Lauszus
5b793db3e3 Can now call setLedOff without any argument, to turn all LEDs off 2013-11-15 23:19:10 +01:00
Kristian Lauszus
16c4272358 Can now get Bluetooth address inside PS3 controller - can also get calibration data inside move controller
Also updated some comments and cleanup
2013-11-12 19:44:12 +01:00
Andrew J. Kroll
1a0d0690d3 compile faster 2013-09-23 18:40:10 -04:00
Kristian Sloth Lauszus
2ce56b0968 Merge branch 'master' into xxxajk
Conflicts:
	PS3USB.cpp
2013-07-16 17:07:25 +02:00
Kristian Sloth Lauszus
1a1c2a18d3 Added DEVCLASSOK and VIDPIDOK to some drivers 2013-07-15 18:20:58 +02:00
Kristian Sloth Lauszus
2dc817f84a Added attachOnInit
This will allow the user to call a function when the controller is initialized
2013-07-14 00:43:35 +02:00
Kristian Sloth Lauszus
a890d4aca8 Moved PS3 report buffer into PS3Enums 2013-04-02 00:12:38 +02:00
Kristian Sloth Lauszus
831d18016e Added setLedRaw 2013-04-01 15:38:15 +02:00
Kevin Mark
f3342aa589 Code cleanup 2013-03-30 04:15:25 -04:00
Kevin Mark
adff5d790d Overloaded PS3BT/PS3USB's setRumbleOn to accept custom rumble settings. 2013-03-30 03:42:52 -04:00
Andrew J. Kroll
904f2ff25a Clean up code formatting to industry standards. 2013-03-28 04:46:43 -04:00
Kristian Sloth Lauszus
2266398b28 Updated documentation 2013-02-17 01:25:49 +01:00
Kristian Sloth Lauszus
1333e9a63b Updated comments to work with Doxygen 2013-02-05 19:51:45 +01:00
Kristian Sloth Lauszus
391f5ece4d Fixed conflict between analog buttons and digital buttons 2013-01-27 22:02:33 +01:00
Kristian Lauszus
2182ec9a97 Added comment about difference bewteen getButtonPress and getButtonClick 2012-10-03 21:29:44 +02:00
Kristian Lauszus
09f19de0d3 Fixed conflict between PS3USB and PS3BT 2012-09-09 22:13:52 +02:00
Kristian Lauszus
136d854cef Now works properly with hubs 2012-08-04 19:08:43 +02:00
Kristian Lauszus
9d6eb2d69b Created same syntax for Move controller 2012-05-28 21:53:20 +02:00
Kristian Lauszus
91fbbfad3b Fixed some errors 2012-05-28 21:02:43 +02:00
Kristian Lauszus
67a8969711 A few minor changes 2012-05-27 16:12:27 +02:00
Kristian Lauszus
a53b333660 Added USB version of the library
After several request I decided to port the library to a USB version
2012-05-26 01:48:12 +02:00