dinput: Update existing joystick values after setting the range property

Bassi, Gurmail Gurmail.Bassi at mottmac.com
Sun Apr 14 16:25:03 CDT 2013


ePSXe polls the joystick immediately after setting the axis range property, and uses the returned values as its 'centered' calibrated values - therefore the existing joystick state values must be remapped to the new range (or else the joystick may not have the full range of motion)


This patch has been tested on Ubuntu 12.04.1 LTS x86-64, and the behaviour confirmed to match Microsoft's DirectInput implementation on Windows XP 32-bit (Microsoft's DirectInput seems to update the existing joystick values to the new range prior to polling even if the joystick hasn't been moved)


---
 dlls/dinput/joystick.c |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130414/74e3b2ad/attachment.txt>


More information about the wine-patches mailing list