Added support for Xbox1 analog buttons, tested
This commit is contained in:
parent
0991691b05
commit
54c0b328d1
2 changed files with 8 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -26,6 +26,7 @@ xboxdrv 0.6.2 - (??/Jan/2011)
|
|||
* added --evdev-no-grab to avoid a full grab on the event device
|
||||
* unified ini and command line parsing some more
|
||||
* Mad Catz Xbox controller - MW2 controller support added
|
||||
* added support for Xbox1 analog buttons
|
||||
|
||||
|
||||
xboxdrv 0.6.1 - (21/Dec/2010)
|
||||
|
|
|
@ -289,6 +289,13 @@ uInput::send(XboxMsg& msg)
|
|||
if (msg.dpad_left) send_axis(XBOX_AXIS_DPAD_X, -1);
|
||||
else if (msg.dpad_right) send_axis(XBOX_AXIS_DPAD_X, 1);
|
||||
else send_axis(XBOX_AXIS_DPAD_X, 0);
|
||||
|
||||
send_axis(XBOX_AXIS_A, msg.a);
|
||||
send_axis(XBOX_AXIS_B, msg.b);
|
||||
send_axis(XBOX_AXIS_X, msg.x);
|
||||
send_axis(XBOX_AXIS_Y, msg.y);
|
||||
send_axis(XBOX_AXIS_BLACK, msg.black);
|
||||
send_axis(XBOX_AXIS_WHITE, msg.white);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue