Hi there! I'm a big fan of the wine project, as it's helped me since day one with making my transition into linux a much more smooth and enjoyable process. I still use it even now to run many of the apps I need for school, and (of course) for gaming. It seems that with every release more and more tiny problems get ironed out, and it's wonderful to be a part of that process. One thing that I've had a few problems with have been gamepads... they almost always work, but some games give me unexpected quirks that I figured I might as well ask about (for clarification, and any advice I can get towards an overall fix). For starters, I have four gamepads: a gravis gamepad pro, a ps2 dual shock run through a radio shack usb adapter, a logitech ps3 cordless precision, and a logitech pc rumblepad 2. All of the problems below seem to be mostly related to the latter three, specifically the analog sticks. Here goes:
1) In the game Sonic Adventure DX, when using a pad with analog sticks, the game seems to think that my right analog stick is not centered, as whenever the camera can be controlled (and I'm not pressing any buttons), it immediately moves into first-person view in a given direction (different direction with a different pad). I don't have this problem with other games, and I can't configure the action through the game in order to at least make it stop. Would anyone know why this might be the case, and would it be considered a bug I could file? If it's useful, holding down any button will prevent the camera from zooming in this manner.
2) In the game Tomb Raider: Legend, there is an option called "Gamepad Axes". I'm under the impression that turning this on would allow me to use the sticks, but here's my problem: I can't even make the option clickable. This has given me two problems... for one, the right stick can't be used for camera control, which would be very useful; for two, I can't map commands to the d-pad, because it simply won't let me (this might be the game itself, but essentially when in the pad config menu, d-pad directions and stick directions won't register for commands). Strangely enough, I can still use the left stick to move around in-game. My question: is this due to the way wine currently detects controllers, that it wouldn't know about my analog sticks in the way the game looks for them? I tried adding DirectInput info into the registry, but this didn't seem to help. To be fair, I may have done it wrong (I added "X,Y,Rz,Slider1,POV1" under the key of the pad I named).
Another weird thing about this problem is that in other games, directional input does register in config menus. Prince of Persia:Warrior Within not only registers my axes, but detects my d-pad as a separate item... very useful for navigating menus. This leads me to believe this particular problem is game-related, but I'm obviously posting in hope of input that isn't just my own.
I feel like there was another problem I was having, but if there was one it slipped my mind. So for now, these are my only two big problems. Besides these, my pads all handle like a dream in wine. If either of these warrant a bug report, I'll be happy to file one, and if anyone has anything they can add here to help me understand these issues if they're well known, I'd love to learn more. I know that gamepads are treated pretty generally through wine currently, so that may be part of these problems. I wouldn't be the person to ask, obviously.
Anyhoo. I'm rambling hard-core. Thanks for your time everyone, and please be gentle. Keep up the amazing work on wine!
EDIT: Forgot to mention, I am using wine 1.1.1 on Ubuntu Hardy, through the repo from the official site.
A couple of gamepad-related issues (SOLVED)
- DancemasterGlenn
- Newbie
- Posts: 4
- Joined: Mon Jul 21, 2008 1:24 am
A couple of gamepad-related issues (SOLVED)
Last edited by DancemasterGlenn on Tue Jul 22, 2008 2:16 am, edited 1 time in total.
Re: A couple of gamepad-related issues
Are you using evdev joystick driver or joydev? If you don't know, make sure that /dev/input/event? files corresponding to your joysticks are accessible by you.DancemasterGlenn wrote:For starters, I have four gamepads: a gravis gamepad pro, a ps2 dual shock run through a radio shack usb adapter, a logitech ps3 cordless precision, and a logitech pc rumblepad 2. All of the problems below seem to be mostly related to the latter three, specifically the analog sticks.
- DancemasterGlenn
- Newbie
- Posts: 4
- Joined: Mon Jul 21, 2008 1:24 am
Thanks for the reply. I'm currently under the impression I'm using evdev, but this is may not be the case. I do know that I've installed the libevent-dev repo in synaptic, but that's the extent of my joystick packaging knowledge. I had joystick and jscalibrator packages previously installed (a while ago), but removed both because they didn't seem to help me with any of my previous linux gamepad problems (that probably wasn't at all relevant, but input devices are still something I don't know much about in linux).
Actually, I now think I'm using joydev. This was the output of the command I used to find my joystick name:
The event file in question (js0) was only accessible by root, so I chown-d it to be accessible by me. What can/should I do next?
Actually, I now think I'm using joydev. This was the output of the command I used to find my joystick name:
Code: Select all
WINEDEBUG=+dinput wine program.exe 2>&1 | grep joydev_enum_device
trace:dinput:joydev_enum_deviceW Enumerating the linux Joystick device: /dev/input/js0 (PS3/USB Cordless Gamepad)
- DancemasterGlenn
- Newbie
- Posts: 4
- Joined: Mon Jul 21, 2008 1:24 am
I see it in the code that was returned? Having gone back to the dev/input folder, I further went into input/by-id and found two files related to the pad I'm using:"usb-046d_PS3.USB_Cordless_Gamepad-event-joystick" and "usb-046d_PS3.USB_Cordless_Gamepad-joystick". reading through their properties, the former does not have its permissions set to me, and has a "link target" to /event1. Are you implying that I should try setting permissions for either or both of these? Or am I completely off? Thanks for your patience.
EDIT: Wow, it worked! By setting event1's permissions, all of my problems have completely cleared up. Thanks so much for your help, and I'm sorry I didn't quite get it right away. You've made my wine experience that much more enjoyable, thank you.
EDIT: Wow, it worked! By setting event1's permissions, all of my problems have completely cleared up. Thanks so much for your help, and I'm sorry I didn't quite get it right away. You've made my wine experience that much more enjoyable, thank you.