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
6e0748d097
Revert "Change button index 'get' functions to constexpr"
...
On second thought, reverting this so that in the case that the function is *not* evaluated at compile-time, the button values function is not called twice.
2021-03-27 08:37:15 -04:00
David Madison
89575639b1
Change button index 'get' functions to constexpr
2021-03-27 08:37:15 -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
87810e31f1
Fixed comment
2018-09-11 10:27:40 +02:00
Kristian Sloth Lauszus
267f330ed7
Put DPADEnum into the source file, so it does not conflict with the one in the SRWS1 driver
2016-02-26 01:02:39 +01:00
Kristian Sloth Lauszus
7e449d2d3a
Replaced all double variables with float
2015-10-12 13:20:48 +02:00
Andrew J. Kroll
586ed62467
CRLF -> LF
2015-03-12 17:27:21 -04:00
Kristian Lauszus
2c5f5e8c09
Can now read battery level and usb, audio and mic status of PS4 controller
...
Inspired by: https://github.com/chrippa/ds4drv/blob/master/ds4drv/device.py
2014-04-23 23:40:47 +02:00
Kristian Lauszus
37d59a63b2
bigRumble and smallRumble values were swapped
2014-02-17 17:39:15 +01:00
Kristian Lauszus
fcd6eb5084
Improved the way PS4 buttons are read
2014-02-17 01:25:29 +01:00
Kristian Lauszus
a21d1e7258
Cleanup
...
No new code
2014-02-17 00:50:02 +01: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
9b44357d04
Added packed attribute to all structs in PS4Parser.h. This was needed for Teensy 3.x
...
It was actually only necessary for finger in touchpadXY, but I added to all structs to prevent similar compile errors for future architectures
2014-02-16 01:24:38 +01:00
Kristian Lauszus
7806212132
Removed some unnecessary functions and some other cleanup
2014-02-03 23:06:27 +01:00
Kristian Lauszus
876962afce
Update comments
2014-01-22 06:31:27 +01:00
Kristian Lauszus
2a1db31cf1
Can now read the IMU and touchpad values of the PS4 controller via Bluetooth as well
...
Thanks to Frank Zhao - see: http://eleccelerator.com/wiki/index.php?title=DualShock_4#0x11
2014-01-22 05:13:49 +01:00
Kristian Lauszus
e2bf041286
Updated some more comments
2014-01-19 17:14:09 +01:00
Kristian Lauszus
e781d6c554
Updated some comments and some other minor things
2014-01-19 16:58:29 +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