Vitaliy Margolen : dinput: Fix POV calculation.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 6 08:03:54 CDT 2007


Module: wine
Branch: master
Commit: 19183e71d416b252721132324ee52a26b86936fb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=19183e71d416b252721132324ee52a26b86936fb

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Sun Aug  5 12:22:49 2007 -0600

dinput: Fix POV calculation.

Combine and simplify the POV calculations. Linux provides X,Y for the POV.
While DirectInput returns dial-degrees*1000 (12 o-click is 0 degrees).

---

 dlls/dinput/device_private.h      |    3 +
 dlls/dinput/joystick_linux.c      |  126 +++++++++----------------------------
 dlls/dinput/joystick_linuxinput.c |   75 ++++++++++------------
 3 files changed, 67 insertions(+), 137 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=19183e71d416b252721132324ee52a26b86936fb



More information about the wine-cvs mailing list