Gamepad & Wine 1.0.1-2 on Debian Sid

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
the98
Level 1
Level 1
Posts: 8
Joined: Sat Jul 25, 2009 11:14 am

Gamepad & Wine 1.0.1-2 on Debian Sid

Post by the98 »

Hi, I need you help.

I've been reading and searching on Google for a while know to try to get my gamepad (joystick, whatever) to work. Of course that the gamepad works fine under GNU/linux natives apps, like ZNES.

First of all, is not a gamepad or joystick actually, it's an adaptor that lets me connect 2 PSII joysticks in one USB port.

The module I'm using is joydev, and I'm trying to make my joystick work with VirtuaNES. I have tested the gamepad under Windows with the same program, and it works fine.

This is what I get when I debug:

$ WINEDEBUG=+dinput wine VirtuaNES.exe 2>&1 | grep joydev

Code: Select all

trace:dinput:find_joydevs Found a joystick on /dev/input/event6: Twin USB Joystick ({9e573eda-7734-11d2-8d4a-23903fb6bdf7})
trace:dinput:find_joydevs  ... with force feedback
trace:dinput:find_joydevs  ... with axis 0: cur=127, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 1: cur=127, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 2: cur=127, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 5: cur=127, 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
trace:dinput:find_joydevs Found a joystick on /dev/input/event7: Twin USB Joystick ({9e573eda-7734-11d3-8d4a-23903fb6bdf7})
trace:dinput:find_joydevs  ... with force feedback
trace:dinput:find_joydevs  ... with axis 0: cur=127, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 1: cur=127, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 2: cur=127, min=0, max=255, fuzz=0, flat=15
trace:dinput:find_joydevs  ... with axis 5: cur=127, 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
If you ask me, I think both gamepads are found by wine, or at least, that's the reading I get from this debug.

So I have been trying for hours different "solutions", but none of them worked.

I will also leave you this commands:

# ls -l /dev/input/by-id

Code: Select all

total 0
lrwxrwxrwx 1 root root 9 jul 25 13:08 usb-0810_Twin_USB_Joystick-event-joystick -> ../event6
lrwxrwxrwx 1 root root 6 jul 25 13:08 usb-0810_Twin_USB_Joystick-joystick -> ../js0

# ls -l /dev/input/

Code: Select all

total 0
drwxr-xr-x  2 root root        80 jul 25 13:08 by-id
drwxr-xr-x  2 root root       160 jul 25 13:08 by-path
crwxrwxrwx  1 root plugdev 13, 64 jul 25 06:29 event0
crwxrwxrwx  1 root plugdev 13, 65 jul 25 06:29 event1
crwxrwxrwx  1 root plugdev 13, 66 jul 25 06:29 event2
crwxrwxrwx  1 root plugdev 13, 67 jul 25 06:29 event3
crwxrwxrwx+ 1 root plugdev 13, 68 jul 25 06:29 event4
crwxrwxrwx  1 root plugdev 13, 69 jul 25 06:29 event5
crw-rw-r--+ 1 root audio   13, 70 jul 25 13:08 event6
crw-rw-r--+ 1 root audio   13, 71 jul 25 13:08 event7
crw-rw-r--  1 root root    13,  0 jul 25 13:08 js0
crw-rw-r--  1 root root    13,  1 jul 25 13:08 js1
crw-rw----  1 root root    13, 63 jul 25 06:28 mice
crw-rw----  1 root root    13, 32 jul 25 06:29 mouse0
I have tried to change permissions, but it didn't work either. However, there is a big chance I'm not doing that right.

I currently don't have a symbolic link (/dev/js0) to /dev/input/js0. I don't think I need it because both joysticks are recognized, apparently.

Thanks for your help. :oops: :oops:
Cloudef
Level 4
Level 4
Posts: 138
Joined: Wed Mar 18, 2009 3:10 pm

Post by Cloudef »

For me gamepad has always worked :/ And it is weird that it does not work under Wine, but works under native apps. Do you have native dinput?

I guess you could try the symlink aswell.

For alternative solution, i suggets using this =) Will make your gamepads more useful http://jojsticken.sourceforge.net/
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Gamepad & Wine 1.0.1-2 on Debian Sid

Post by vitamin »

the98 wrote:Re: Gamepad & Wine 1.0.1-2 on Debian Sid
That's a really old Wine version, upgrade.
the98 wrote:I've been reading and searching on Google for a while know to try to get my gamepad (joystick, whatever) to work.
What exactly doesn't work?
the98
Level 1
Level 1
Posts: 8
Joined: Sat Jul 25, 2009 11:14 am

Post by the98 »

I try to configure it under VirtuaNES and it doesn't respond. I don't know if there is a way to test with some other application under Wine.

Would it do any good to upgrade?

I think it should work under this version, cause Wine finds it... It's weird...
the98
Level 1
Level 1
Posts: 8
Joined: Sat Jul 25, 2009 11:14 am

Post by the98 »

Sorry for the re-post, but I can't edit.

Upgraded Wine, and it doesn't work either, so I went back to the older version.
Frédéric Delanoy

Gamepad & Wine 1.0.1-2 on Debian Sid

Post by Frédéric Delanoy »

On 07/25/2009 07:29 PM, the98 wrote:
Sorry for the re-post, but I can't edit.

Upgraded Wine, and it doesn't work either, so I went back to the older version.
If you want to get support, you'd generally want to use latest version.
the98
Level 1
Level 1
Posts: 8
Joined: Sat Jul 25, 2009 11:14 am

Post by the98 »

I've download a little app for Windows called, joysticktester.exe and executed it with Wine. Everything works under this application.

So the problem must be VirtuaNES. Does anyone think I have a chance to make the joystick work? Works Ok under Windows.

Maybe I should¡t use joydev??
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

the98 wrote:Maybe I should¡t use joydev??
All depends on how your program talking to joysticks. There are at least 3 ways to do it, and all work differently.

In other words, if it's using dinput, it should work. If it's using winmm, it will work only with joydev. No other methods are supported.
the98
Level 1
Level 1
Posts: 8
Joined: Sat Jul 25, 2009 11:14 am

Post by the98 »

How can I know what's using? And how can I tell wine to use something else so the program access the joystick?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

the98 wrote:How can I know what's using? And how can I tell wine to use something else so the program access the joystick?
The only way to tell that I can think of is enabling debug output and checking what's going on. Use WINEDEBUG=+dinput,+joystick. First will show any dinput activity, second - winmm.

Another thing that VirtuaNES might not like is axes mapping. Make sure your joystick's axes are mapped the same as on Windows.
the98
Level 1
Level 1
Posts: 8
Joined: Sat Jul 25, 2009 11:14 am

Post by the98 »

I made it work with joy2key, but I didn't want to make it work that way. Anyway, thanks for your help.
Locked