DINPUT: Detect force feedback joysticks (FF #1)

Daniel Remenak dtremenak at gmail.com
Wed Jul 27 22:28:23 CDT 2005


The first in a series of patches to enable force feedback through
DirectInput on linux event devices.

Changelog:
Detect force-feedback-capable linux event device joysticks and return
DIDC_FORCEFEEDBACK when queried for capabilities.

Basically adds three things:
1. Configure checks for the availability of a new enough linux/input.h
to support force feedback.  This pretty much means any kernel 2.6 or
kernel 2.4.x with the ff patchset found at
http://sourceforge.net/projects/libff/.  Some of the structures were
changed without changing the version define, so this check is
necessary.
2. The linuxinput dinput joystick driver tries to open the device in
read/write mode, and falls back to read-only (with no ff support) if
it fails.
3. The device is queried for the EV_FF capability bit and ffbits is
filled with the specific supported effect types.  If that all goes
well, DIDC_FORCEFEEDBACK is added to the device flags.

Autoheader and Autoconf will of course need to be run after this patch
is applied.

--Daniel Remenak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ff-1-detect.diff
Type: text/x-patch
Size: 4325 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050727/4a1210e4/ff-1-detect.bin


More information about the wine-patches mailing list