Logitech WingMan Cordless Gamepad

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Gujs
Newbie
Newbie
Posts: 4
Joined: Sat Mar 28, 2009 7:39 am

Logitech WingMan Cordless Gamepad

Post by Gujs »

Hi,

I have a problem with this particular gamepad. I calibrated it under linux with jscal and it is working OK. But now I want to play FIFA with it and fifa don't detect it as Logitech WingMan Cordless Gamepad but as controler.

I found wine registry tips and followed their guide for DirectInput but I have a problem because command specified there doesn't give the expected output:

Code: Select all

WINEDEBUG=+dinput wine /home/gregor/.wine/drive_c/Program\ Files/EA\ Sports/FIFA\ 09/FIFA09.exe 2>&1 | grep joydev_enum_device
trace:dinput:joydev_enum_deviceA Enumerating the linux Joystick device: /dev/input/js0 (Logitech WingMan Cordless Gamepad)
I don't get any axis info which have to be entered in registry like this:

Code: Select all

Logitech Logitech Dual Action"="X,Y,Rz,Slider1,POV1
Can somebody help me get this line right for registry that my Logitech WingMan Cordless Gamepad would be recognised by games running with wine.
Gujs
Newbie
Newbie
Posts: 4
Joined: Sat Mar 28, 2009 7:39 am

Post by Gujs »

Now I figured out that all axes work in FIFA, but because it detects my gamepad as normal controller I can't get all buttons to work.

Can somebody help me figure out what do I have to import into wine registry to identify my gamepad as Logitech WingMan Cordless Gamepad.

I found out this with jstest:

Code: Select all

Joystick (Logitech WingMan Cordless Gamepad) has 7 axes (X, Y, Z, Rz, Throttle, Hat0X, Hat0Y)
and 11 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5).
How can I convert this info into registry entry for wine? I don't know how to write all these axes in proper way. Here is an example:

Code: Select all

"Logitech Logitech Dual Action"="X,Y,Rz,Slider1,POV1"
Regards,
Gujs
Gujs
Newbie
Newbie
Posts: 4
Joined: Sat Mar 28, 2009 7:39 am

Post by Gujs »

Now I removed /dev/input/js0 and chmod 777 /dev/input/even2 which is also my gampad. But it still work the same way. I cannot assign some gamepad buttons in fifa (didn't try anything else yet). But I have some new wine debug info:

Code: Select all

trace:dinput:IDirectInputAImpl_EnumDevices   - checking device 2 ('Wine Linux-input joystick driver')
warn:dinput:find_joydevs Failed to open "/dev/input/event0": 13 Permission denied
warn:dinput:find_joydevs Failed to open "/dev/input/event1": 13 Permission denied
trace:dinput:find_joydevs Found a joystick on /dev/input/event2: Logitech WingMan Cordless Gamepad ({9e573eda-7734-11d2-8d4a-23903fb6bdf7})
trace:dinput:find_joydevs  ... with axis 0: cur=128, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 1: cur=123, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 2: cur=123, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 5: cur=125, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 6: cur=123, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 16: cur=0, min=-1, max=1, fuzz=0, flat=0
trace:dinput:find_joydevs  ... with axis 17: cur=0, min=-1, max=1, fuzz=0, flat=0
Can this help to create an wine registry entry?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Gujs wrote:I cannot assign some gamepad buttons in fifa
If they don't work then they don't work because of driver bug or Wine doesn't support them. Or your game doesn't detect buttons properly.
You can not remap buttons via registry, only axis.
Gujs
Newbie
Newbie
Posts: 4
Joined: Sat Mar 28, 2009 7:39 am

Post by Gujs »

But they work with jstest! I think it is problem in fifa and wine together, because fifa detects gamepad as some generic gamepad and not Logitech Wingman Cordless.
Locked