Commit graph

8 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
3915e96962 Added support for rumble functionality on the Xbox One S controller via Bluetooth 2021-01-24 14:33:44 +01:00
Kristian Sloth Lauszus
102746ef6b Xbox One S controller support is now finally working 2020-11-15 19:14:30 +01:00