Commit graph

9 commits

Author SHA1 Message Date
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
57afaefd2c Check direct enum comparisons by index
To not break support for users who used the "wrong" control enumeration for that controller, but had their program work because the "wrong" enum used the same ID.
2021-03-27 07:31:37 -04:00
David Madison
f9a408204d Use signed index values for ButtonEnum 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
9a0a4940b3 Setting the LED, lightbar, rumble via Bluetooth is now working 2021-01-19 20:28:47 +01: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