On Sun, Apr 14, 2013 at 2:25 PM, Bassi, Gurmail Gurmail.Bassi@mottmac.com wrote:
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(+)
Hi Gurmail,
This appears to have caused a regression, see http://bugs.winehq.org/show_bug.cgi?id=33496
(normally I'd cc you on the bug, but you don't seem to have a bugzilla account).
-- -Austin