[Bug 20388] Wine only detected 4 axis of a gamepad

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Nov 2 08:38:54 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=20388





--- Comment #8 from Vitaliy Margolen <vitaliy at kievinfo.com>  2009-11-02 08:38:54 ---
For evdev I see it's reported as 6 axes:
trace:dinput:find_joydevs  ... with axis 0: cur=128, min=4, max=252, fuzz=0,
flat=2
trace:dinput:find_joydevs  ... with axis 1: cur=128, min=4, max=252, fuzz=0,
flat=2
trace:dinput:find_joydevs  ... with axis 3: cur=128, min=4, max=252, fuzz=0,
flat=2
trace:dinput:find_joydevs  ... with axis 4: cur=128, min=4, max=252, fuzz=0,
flat=2
trace:dinput:find_joydevs  ... with axis 16: cur=128, min=4, max=252, fuzz=0,
flat=2
trace:dinput:find_joydevs  ... with axis 17: cur=128, min=4, max=252, fuzz=0,
flat=2

Where:
axis 0: ABS_X
axis 1: ABS_Y
axis 3: ABS_RX
axis 3: ABS_RY
axis 16: ABS_HAT0X
axis 17: ABS_HAT0Y

So does joydev:
trace:dinput:alloc_device axis_map[0] = 8
trace:dinput:alloc_device axis_map[1] = 8
trace:dinput:alloc_device axis_map[2] = 2
trace:dinput:alloc_device axis_map[3] = 3
trace:dinput:alloc_device axis_map[4] = 4
trace:dinput:alloc_device axis_map[5] = 5
trace:dinput:_dump_DIDEVCAPS dwAxes: 4
trace:dinput:_dump_DIDEVCAPS dwPOVs: 1


The only issue I see here is joydev maps first 2 axes as POV. While evdev
driver maps 2 last axes as POV. But that's what your system (driver) says it
should be mapped as. If that's not correct you can remap it within Wine. That's
what axes remapping support is for.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list