Need some other windows program to test if joystick is working. Might be something specific related to this only program.agusmba wrote:I didn't have the joystick package installed, I apt-get'ted it and run the jstest.
All two joysticks and 12 buttons in the gamepad were recognized correctly and when I pushed them I got the right feedback on the console.
However PES on wine still doesn't see the buttons...
Gamepad missing buttons
You may have a good point there.vitamin wrote:Need some other windows program to test if joystick is working. Might be something specific related to this only program.agusmba wrote:I didn't have the joystick package installed, I apt-get'ted it and run the jstest.
All two joysticks and 12 buttons in the gamepad were recognized correctly and when I pushed them I got the right feedback on the console.
However PES on wine still doesn't see the buttons...
Do you recommend any small windows program that should work in wine to test this?
I'll look around also.
Thanks!!
DInput joystick sample from DX SDK is ok. Of course you can use Wine's own dinput test program with WINETEST_INTERACTIVE=1agusmba wrote:You may have a good point there.vitamin wrote:Need some other windows program to test if joystick is working. Might be something specific related to this only program.agusmba wrote:I didn't have the joystick package installed, I apt-get'ted it and run the jstest.
All two joysticks and 12 buttons in the gamepad were recognized correctly and when I pushed them I got the right feedback on the console.
However PES on wine still doesn't see the buttons...
Do you recommend any small windows program that should work in wine to test this?
I'll look around also.
Thanks!!
I'll look for DInput.vitamin wrote: DInput joystick sample from DX SDK is ok. Of course you can use Wine's own dinput test program with WINETEST_INTERACTIVE=1
I did a quick search for wine's dinput test and came out with:
Code: Select all
cd wine/dlls/dinput/tests
WINETESTINTERACTIVE=1 wine dinput_test.exe.so joystick
or
WINEDEBUG=+dinput WINETESTINTERACTIVE=1 wine dinput_test.exe.so joystick
Thanks!
First should work - no need for the WINEDEBUG.agusmba wrote:I'll look for DInput.vitamin wrote: DInput joystick sample from DX SDK is ok. Of course you can use Wine's own dinput test program with WINETEST_INTERACTIVE=1
I did a quick search for wine's dinput test and came out with:
Would these two be enough? I'll post the output when I get home.Code: Select all
cd wine/dlls/dinput/tests WINETESTINTERACTIVE=1 wine dinput_test.exe.so joystick or WINEDEBUG=+dinput WINETESTINTERACTIVE=1 wine dinput_test.exe.so joystick
Thanks!
I installed the wine-dev package but no dinput_test.exe.so there either...agusmba wrote:I can't find the dinput_test.exe.so, I guess it must be part of the wine-dev package that I don't have... With my crappy connection this is going to take some time
Is that tool in binary form somewhere? Do I have to compile from the source code (which I don't have)?
Thanks!
I guess you'll have to compile it or extract it from the winetest test suite.agusmba wrote:I installed the wine-dev package but no dinput_test.exe.so there either...agusmba wrote:I can't find the dinput_test.exe.so, I guess it must be part of the wine-dev package that I don't have... With my crappy connection this is going to take some time
Is that tool in binary form somewhere? Do I have to compile from the source code (which I don't have)?
Thanks!
I'm a bit reluctant to download the whole sourcetree plus all the related dev packages just to get the dinput_test.exe.so. I googled around for that file but couldn't find any binary online. Maybe I'm looking in the wrong places...I guess you'll have to compile it or extract it from the winetest test suite.
I also looked at your other option, the DXSDK dinput joystick sample, but again, download 400+ MB and install in a windows box just to get the small sample is a bit too much for me.
I'll keep searching though, and if I gather enough patience I might try to tread the long path above.
http://www.yourfilelink.com/get.php?fid=459621agusmba wrote:I'm a bit reluctant to download the whole sourcetree plus all the related dev packages just to get the dinput_test.exe.so. I googled around for that file but couldn't find any binary online. Maybe I'm looking in the wrong places...I guess you'll have to compile it or extract it from the winetest test suite.
I also looked at your other option, the DXSDK dinput joystick sample, but again, download 400+ MB and install in a windows box just to get the small sample is a bit too much for me.
I'll keep searching though, and if I gather enough patience I might try to tread the long path above.
Thanks!!!!!
Here is the output of the test:
Although it complains about buttons, all the buttons in the lines were "1" at least once, but not all at the same time.
Here is the output of the test:
Code: Select all
~$ WINETEST_INTERACTIVE=1 wine dinput_test.exe.so joystick
joystick.c:401:DLL Version: 5.1.2600.881
joystick.c:379:-- Testing Direct Input Version 0x0700 --
joystick.c:202:---- Guillemot Corporation DA Leader ----
joystick.c:278: Test failed: Number of enumerated buttons doesn't match capabilities
joystick.c:328:You have 30 seconds to test all axes, sliders, POVs and buttons
joystick.c:333:
joystick.c:353:X -80 Y 0 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
joystick.c:353:X -226 Y 0 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
joystick.c:353:X-1541 Y 1457 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
[........]
joystick.c:353:X -121 Y 0 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
joystick.c:353:X -121 Y 0 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 1 0 0 0 0 0 0 0 0
joystick.c:358:
joystick.c:379:-- Testing Direct Input Version 0x0500 --
joystick.c:202:---- Guillemot Corporation DA Leader ----
joystick.c:278: Test failed: Number of enumerated buttons doesn't match capabilities
joystick.c:328:You have 30 seconds to test all axes, sliders, POVs and buttons
joystick.c:333:
joystick.c:353:X -121 Y 0 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 1 0 0 0 0 0 0 0 0
joystick.c:353:X -121 Y 0 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
joystick.c:353:X -267 Y 0 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
[.....]
joystick.c:353:X -121 Y 0 Z 0 Rx 0 Ry 0 Rz 0 S0 0 S1 0 POV0 0 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 1 1
joystick.c:358:
joystick.c:379:-- Testing Direct Input Version 0x0300 --
joystick: 901 tests executed (0 marked as todo, 2 failures), 0 skipped.
Ok so it tells me it's working. Could you paste the output here when using evdev? (/dev/input/eventX device)agusmba wrote:If I remove /dev/input/js0 and chmod 666 /dev/input/event4
and I repeat the test, I get 16 errors instead of 2 and the
fixme:dinput:joy_polldev joystick cannot handle type 4 event (code 4)
error like before whenever I push a button (although there's also a test line where the button is at "1"...
Those "1"s after B represent a pressed button. So if you see them and they correspond to the button you pushed on your joystick then this part works.
The tests with evdev go something like this:
When I use the joysticks all is ok, but when I push one of the buttons, I see the "fixme" line and a "normal" line where the button appears to be pushed ("1")
Code: Select all
....
fixme:dinput:joy_polldev joystick cannot handle type 4 event (code 4)
joystick.c:353:X 0 Y 0 Z 0 Rx 0 Ry 0 Rz 857 S0 1984 S1 0 POV0 -1 POV1 0 POV2 0 POV3 0 B 1 0 1 0 0 0 0 0 0 0 0 0
fixme:dinput:joy_polldev joystick cannot handle type 4 event (code 4)
fixme:dinput:joy_polldev joystick cannot handle type 4 event (code 4)
joystick.c:353:X 0 Y 0 Z 0 Rx 0 Ry 0 Rz 1746 S0-1111 S1 0 POV0 -1 POV1 0 POV2 0 POV3 0 B 1 1 0 0 0 0 0 0 0 0 0 0
fixme:dinput:joy_polldev joystick cannot handle type 4 event (code 4)
joystick.c:353:X 0 Y 0 Z 0 Rx 0 Ry 0 Rz-1286 S0-1429 S1 0 POV0 -1 POV1 0 POV2 0 POV3 0 B 1 1 0 1 0 0 0 0 0 0 0 0
joystick.c:358:
joystick.c:379:-- Testing Direct Input Version 0x0500 --
joystick.c:202:---- /dev/input/event5 ----
joystick.c:134: Test failed: deadzone invalid: expected 0 got 235
joystick.c:134: Test failed: deadzone invalid: expected 0 got 235
joystick.c:134: Test failed: deadzone invalid: expected 0 got 235
joystick.c:134: Test failed: deadzone invalid: expected 0 got 235
joystick.c:278: Test failed: Number of enumerated buttons doesn't match capabilities
joystick.c:328:You have 30 seconds to test all axes, sliders, POVs and buttons
joystick.c:333:
joystick.c:353:X-2000 Y-2000 Z 0 Rx 0 Ry 0 Rz-2000 S0-2000 S1 0 POV0 -1 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
joystick.c:353:X-2000 Y-2000 Z 0 Rx 0 Ry 0 Rz 968 S0 1762 S1 0 POV0 -1 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
joystick.c:353:X-2000 Y-2000 Z 0 Rx 0 Ry 0 Rz 1492 S0-1444 S1 0 POV0 -1 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
....
joystick.c:353:X -143 Y-1508 Z 0 Rx 0 Ry 0 Rz 0 S0 -270 S1 0 POV0 -1 POV1 0 POV2 0 POV3 0 B 0 0 0 0 0 0 0 0 0 0 0 0
joystick.c:358:
joystick: 1263 tests executed (0 marked as todo, 16 failures), 0 skipped.
Yes, it goes back to 0.vitamin wrote:Ok good. When you release that button doe it go back to "0"?agusmba wrote:When I use the joysticks all is ok, but when I push one of the buttons, I see the "fixme" line and a "normal" line where the button appears to be pushed ("1")
I think I get the "fixme" line when I push and when I release the button.
Then all I can say is it all works. There is something your particular game doesn't like. What exactly - hard to tell. Please open a bug in bugzilla.agusmba wrote:Yes, it goes back to 0.vitamin wrote:Ok good. When you release that button doe it go back to "0"?agusmba wrote:When I use the joysticks all is ok, but when I push one of the buttons, I see the "fixme" line and a "normal" line where the button appears to be pushed ("1")
I think I get the "fixme" line when I push and when I release the button.
No fixmes are not helpful in bugreport in this particular case. Just write that buttons don't work with your game and that you tested joystick with wine-test which indicated that buttons indeed working.agusmba wrote:Ok, I'll open a bug.
Then the "fixme" lines are ok, and shouldn't create a problem?
Thanks a lot for all your patience and walking me through all these steps. A pity it didn't work out in the end but still very informative.
Thanks!!!
If there is a demo for this game you should try it and report if it has the same problem or not.
If there is no demo or it doesn't have the same problem then you need to:
- Run your game with 'WINEDEBUG=+dinput wine game.exe &> /tmp/wine-log.txt'
- Press few buttons few times
- Compress /tmp/wine-log.txt file with bzip and attach it to that bug report.
I opened the bug http://bugs.winehq.org/show_bug.cgi?id=12429
I'll upload the logs you recommended later.
Thanks!
I'll upload the logs you recommended later.
Thanks!
Hi again. Has anyone got this file handy (dinput_test.exe.so)? I'd like to try it without having to do a ton of extra work which may not be related to my specific little test. Thanks to Vitamin for posting it but that link appears to be expired now so I was hoping for a re-up from someone who may have it. Thank you.vitamin wrote:http://www.yourfilelink.com/get.php?fid=459621agusmba wrote:I'm a bit reluctant to download the whole sourcetree plus all the related dev packages just to get the dinput_test.exe.so. I googled around for that file but couldn't find any binary online. Maybe I'm looking in the wrong places...I guess you'll have to compile it or extract it from the winetest test suite.
I also looked at your other option, the DXSDK dinput joystick sample, but again, download 400+ MB and install in a windows box just to get the small sample is a bit too much for me.
I'll keep searching though, and if I gather enough patience I might try to tread the long path above.
Just subscribed to wine-users, hope all my million 1 word edits haven't been posted
