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
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
User Name
5731eda1cb
added unused attribute to suppress warnings generated by XBOXONE.cpp
2019-01-15 21:02:23 -07:00
Kristian Sloth Lauszus
25572863b7
Use a counter when sending Xbox commands
...
This is needed in order for rumble to work
This is how it is done in the Linux kernel - see: https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c
2018-03-15 20:43:47 +01:00
Kristian Sloth Lauszus
b0b255cd95
Added support for rumble effect on Xbox One controllers
...
Fixes #363
2018-03-15 09:52:01 +01:00
Kristian Sloth Lauszus
7078ea9f32
Extract the endpoints from the Xbox One controller instead of hardcoding them
...
Also cleaned up the code a bit
Fixes #305
2017-11-09 18:56:40 +01:00
Kristian Sloth Lauszus
39150a15ea
Also update the ButtonClickState variable when the Xbox button is pressed
...
Fixes #299
2017-06-18 18:02:43 +02:00
Kristian Sloth Lauszus
f286114ac9
Newer Xbox One controllers requires a longer initialisation command
...
Fixes #216
2017-06-15 12:03:02 +02:00
Kristian Sloth Lauszus
c362c04065
The Xbox button on the Xbox One controller was not read properly
...
XBOX_BUTTONS is stored in PROGMEM
2016-11-26 23:56:45 -06:00
Kristian Sloth Lauszus
fb723fcbb0
Don't set epAttribs to 0, as this will set bmNakPower to 0 as well. Instead set bmSndToggle and bmRcvToggle explicit to 0.
...
Fixes : #184
2015-11-18 00:11:33 +01:00
Kristian Sloth Lauszus
fcab83dcb3
Fixed some bugs in: https://github.com/felis/USB_Host_Shield_2.0/pull/135
2015-03-25 01:16:41 +01:00
Fred
199612e93e
bug fix: would only detect first XBOX button press
2015-02-15 19:56:17 +00:00
Fred
9979e50426
LeftTrigger/RightTrigger => L2/R2 for consistency
2015-02-15 19:47:06 +00:00
Fred
2d4ab30005
Fixed tabbing...
2015-02-14 11:15:29 +00:00
Fred
7c475c91e0
Xbox ONE Controller support
2015-02-14 11:09:24 +00:00