Disabling a gamepad

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
rufsketch1
Newbie
Newbie
Posts: 3
Joined: Sun Jun 05, 2011 6:11 pm

Disabling a gamepad

Post by rufsketch1 »

I'm using a ps3 gamepad to play windows games using wine, and in almost every game tried (devil may cry 4, grid wars, trackmania nations forever), wine does some ridiculous thing with constantly making everything go left. (I imagine it's an issue with the left thumbstick mapping. I have tried with multiple PS3 controllers and can confirm it's not a hardware issue).

Anyway, the going left thing is really awful and makes games that require a gamepad almost unplayable. If I could fix the constantly going left thing I would be the happiest of campers, but I've resigned myself to just mapping keyboard inputs using QJoyPad and hoping for the best in games where analog support is required.

However, it seems that in some games (Trackmania Nations Forever) mapping keyboard input results in both wine using the controller to constantly go left and also to register the keyboard inputs that I've mapped the gamepad to. So Trackmania will know for example that square means brake an right trigger means accelerate because I've mapped them to the down and up arrows respectively, but the car will still go left because WINE is all like "hey a controller! let's make everything go left!"

Is there any way to hide the gamepad from WINE entirely so that I can just use the keyboard inputs and not have wine worry about the gamepad?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Disabling a gamepad

Post by jjmckenzie »

On 6/5/11 4:21 PM, rufsketch1 wrote:
I'm using a ps3 gamepad to play windows games using wine, and in almost every game tried (devil may cry 4, grid wars, trackmania nations forever), wine does some ridiculous thing with constantly making everything go left. (I imagine it's an issue with the left thumbstick mapping. I have tried with multiple PS3 controllers and can confirm it's not a hardware issue).
Yes, there is a simple way to do this: Disconnect the controller if you
can.

The next thing is to capture a logging file where the input is incorrect
and attach it to a bug report that you should either find or file in our
BugZilla.
rufsketch1
Newbie
Newbie
Posts: 3
Joined: Sun Jun 05, 2011 6:11 pm

Post by rufsketch1 »

Disconnecting the controller will not allow me to use the controller.

I don't know enough about logging to make any use of your instructions.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Disabling a gamepad

Post by jjmckenzie »

On 6/5/11 4:42 PM, rufsketch1 wrote:
Disconnecting the controller will not allow me to use the controller.
Do you need to use the controller for the program to run?
I don't know enough about logging to make any use of your instructions.
The Wine FAQ has a section on how to capture logging files:
http://wiki.winehq.org/FAQ#get_log.

It is still advisable, even if you cannot capture a logging file to
review existing reports on BugZilla. Some of them have workarounds and
unofficial patches to help correct problems.
rufsketch1
Newbie
Newbie
Posts: 3
Joined: Sun Jun 05, 2011 6:11 pm

Post by rufsketch1 »

I need the controller in order to play with a controller. The game isn't worth playing without one.

There's really no way to get wine to just ignore its existence?

I'll see what I can do about the logs.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Post by jjmckenzie »

rufsketch1 wrote:I need the controller in order to play with a controller. The game isn't worth playing without one.
You are confusing me. Let me see if I can unconfuse myself:
1. You want to use the controller to run the game, all keys functional.
2. You want the 'move to the left' stuff to stop.
There's really no way to get wine to just ignore its existence?
No. And I don't think this is what you want. See my comment above.
I'll see what I can do about the logs.
Logs are good. However, I would like for you to answer my questions first.
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

A Mother's Ball for the Fog Lamp

Post by SpawnHappyJake »

Maybe this will clear it up a little:

Apply this quote:
Yes, there is a simple way to do this: Disconnect the controller if you can.
To this quote:
Is there any way to hide the gamepad from WINE entirely so that I can just use the keyboard inputs and not have wine worry about the gamepad?
Also, understand that the current intermediate goal (after answering James McKenzie's questions) to accomplishing the big goal of getting rid of the "left pull", is to acquire a debugging output (log).
To acquire such a log, you don't have to actually "play" the game, as in "to go play the game for fun." You just have to run the game and have it output a log whether it's fun or not. I know that the game isn't fun without a controller, but you can still run the game without a controller to get a debug output...
Unless the game straight-up refuses to run unless a controller is present, which comes back to his question:
Do you need to use the controller for the program to run?


And then there's this:
The next thing is to capture a logging file where the input is incorrect
and attach it to a bug report that you should either find or file in our Bugzilla.
So probably one debug log with the controller attached, and one without. Unmap if nessisary.

Also, I think James McKenzie could breathe a little easier if you confirmed these two things:
1. You want to use the controller to run the game, all keys functional.
2. You want the 'move to the left' stuff to stop.


Personally, I don't quite know exactly how to bring the following two quotes of yours together without them seeming contradictory, though I have a few guesses. Guess 1: You would rather play with a gamepad, held yourself back at the beginning, and were initially willing to play on a keyboard, but now have decided that it is only worth playing with a gamepad. Guess 2: At first you were speaking from a debugging perspective, and more recently you were speaking from a gaming perspective where you are willing to debug with a keyboard, but not play with a keyboard. Guess 3: By "controller" you include "keyboard":
Is there any way to hide the gamepad from WINE entirely so that I can just use the keyboard inputs and not have wine worry about the gamepad?
I need the controller in order to play with a controller. The game isn't worth playing without one.


And two more questions of mine: Do you think it's possible that the "left pull" is the result of the operating system's (not WINE, the operating system) driver or more than one such driver? WINE doesn't have specially implemented drivers for gamepads and/or keyboards, does it?

Hopefully I reduced confusion rather than contributing confusion.
Cheers,
Jake
Locked