Reverse Y axis on firestorm gamepad
This commit is contained in:
parent
71b0192eba
commit
191574e65a
3 changed files with 13 additions and 2 deletions
5
README
5
README
|
@ -726,6 +726,11 @@ You can change the rumble strength via:
|
|||
|
||||
Values larger then 100% are possible as well.
|
||||
|
||||
Note that you must close the application that is using force feedback
|
||||
always before you close the xboxdrv driver, else you might end up with
|
||||
a hanging non-interruptable xboxdrv process that will require a reboot
|
||||
to get rid of.
|
||||
|
||||
|
||||
[[ Known bugs ]]
|
||||
----------------
|
||||
|
|
3
TODO
3
TODO
|
@ -14,6 +14,9 @@ git push --tags
|
|||
Stuff to do before 0.5 release:
|
||||
===============================
|
||||
|
||||
* Thrustmaster has weird delay when reporting actions, which makes it
|
||||
basically unusable
|
||||
|
||||
* test TR:Anniversary with max effect 16
|
||||
|
||||
* create dummy joystick, mouse and keyboard buttons so that the
|
||||
|
|
|
@ -130,11 +130,14 @@ FirestormDualController::read(XboxGenericMsg& msg, bool verbose, int timeout)
|
|||
msg.xbox360.thumb_l = data.thumb_l;
|
||||
msg.xbox360.thumb_r = data.thumb_r;
|
||||
|
||||
if (data.y1 == -128) data.y1 = -127;
|
||||
if (data.y2 == 0) data.y2 = 1;
|
||||
|
||||
msg.xbox360.x1 = data.x1 << 8;
|
||||
msg.xbox360.y1 = data.y1 << 8;
|
||||
msg.xbox360.y1 = -(data.y1 << 8);
|
||||
|
||||
msg.xbox360.x2 = data.x2 << 8;
|
||||
msg.xbox360.y2 = (data.y2 - 128) << 8;
|
||||
msg.xbox360.y2 = -((data.y2 - 128) << 8);
|
||||
|
||||
// data.dpad == 0xf0 -> dpad centered
|
||||
// data.dpad == 0xe0 -> dpad-only mode is enabled
|
||||
|
|
Loading…
Reference in a new issue