Commit graph

29 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
13b9047106 Added support for the Switch Pro controller via Bluetooth 2021-05-02 18:17:07 +02:00
David Madison
5d89999be8 ButtonEnum style order nitpicks
Aligning like-system identifiers for visual congruity. No functional change.
2021-03-27 15:05:16 -04:00
David Madison
2120adf283 Refactor button index function names
It's not really fair to refer to the main index function as "legacy" if it's actively being used. All controller-specific 'get' filtering functions are now appended with the name of the controller rather than having it in the middle.
2021-03-27 08:44:20 -04:00
David Madison
2fe5574e71 Change button values function to constexpr
Requires a chained ternary in place of a switch for compatibility with older compilers.
2021-03-27 08:37:01 -04:00
David Madison
f9a408204d Use signed index values for ButtonEnum 2021-03-27 06:51:01 -04:00
David Madison
5753cc661a Reorganized ButtonEnum list
Trying to form a more logical order based on how these are used.
2021-03-27 06:51:01 -04:00
David Madison
26c66f455e Remove shared identifiers in ButtonEnum
Move shared button identifiers from enum to an inline function, so formerly shared identifiers can be separately filtered and processed on a class-by-class basis.

Fixes #611.
2021-03-27 06:51:01 -04:00
Kristian Sloth Lauszus
28a75dea6b PS5 is now also working via Bluetooth
However the output report is still not working
2021-01-17 23:35:10 +01:00
Kristian Sloth Lauszus
ee7bf6e5a0 PS5 controller is now working via USB 2021-01-17 20:28:57 +01:00
Kristian Sloth Lauszus
102746ef6b Xbox One S controller support is now finally working 2020-11-15 19:14:30 +01:00
kn1cht
a7f67cdfc6 Add ESP32 pin settings 2018-01-14 02:46:36 +09:00
Matt Sieren
51cb078fa0 Exclude specific enum defines and cast
The unscoped Enum for the Controller LEDs is colliding
with changes in the recent RedBearLab nRF51288 SDK, specifically
the PinName enum in the mbed.h header file.
As a simple RBL/mBed specific work-around we are now casting
the LED enums into the USBH LEDEnum enum.

This will potentially break support for controllers on RBL,
but restore the ability to compile the project.
2016-03-18 22:42:23 +01:00
Michi302
4df0d9db25 Corrected spelling mistake "Purble" to "Purple" 2015-05-17 18:52:25 +02:00
Kristian Lauszus
25117ab926 Added support for the Playstation Buzz controllers
See #71
2014-06-29 18:05:50 +02:00
Kristian Lauszus
6373ebe6ce Can now set the rumble and light on the PS4 controller
Still need to test it via USB
2014-02-17 00:21:21 +01:00
Kristian Lauszus
681c668448 Fixed conflict between PS3 and PS4 libraries 2014-01-18 22:50:05 +01:00
Kristian Lauszus
da2ee95445 Added support for the PS4 controller via USB
Also improved the PS4BT library
2014-01-18 22:36:01 +01:00
Kristian Lauszus
c163228063 Renamed KEYPAD to TOUCHPAD 2014-01-12 16:33:19 +01:00
Kristian Lauszus
e9bd896ca2 Added support for the PS4 controller via Bluetooth 2014-01-10 17:44:51 +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 Sloth Lauszus
7ff9dea66b Added support for original Xbox controller 2013-07-18 17:52:23 +02:00
Andrew J. Kroll
904f2ff25a Clean up code formatting to industry standards. 2013-03-28 04:46:43 -04:00
Kristian Sloth Lauszus
1333e9a63b Updated comments to work with Doxygen 2013-02-05 19:51:45 +01:00
Kristian Sloth Lauszus
355ca892eb Added support for Wii U Pro Controller 2013-02-02 22:14:01 +01:00
Kristian Sloth Lauszus
d3bf23b3b9 Fixed date 2013-01-28 13:00:37 +01:00
Kristian Sloth Lauszus
a96c3c4633 Now the XBOXRECV doesn't conflict as well
Also hci_handle is reset when you disconnect
2013-01-28 00:55:01 +01:00
Kristian Sloth Lauszus
391f5ece4d Fixed conflict between analog buttons and digital buttons 2013-01-27 22:02:33 +01:00
Kristian Sloth Lauszus
8ed3fcd3b8 The Wii and PS3 libaries can now be used at the same time 2013-01-27 21:25:50 +01:00