"wine explorer ..." doesn't catch CTRL keypresses

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
zakaluka
Newbie
Newbie
Posts: 3
Joined: Wed Mar 25, 2009 4:50 pm

"wine explorer ..." doesn't catch CTRL keypresses

Post by zakaluka »

Hi all,

I'm new to wine, and this is my first post here, so please forgive me if this information is available elsewhere. I have tried searching regular Google and the custom search on this site, but I can't seem to find the right keywords to get the answer to pop up.

Anyway, here is my problem. I am using Wine to run a couple of games under linux. One of those games is Eve Online. Almost everything is working fine (I applied the appropriate patch).

I am running the game using the following command:

Code: Select all

wine explorer /desktop=1,1440x900 "C:\Program Files\CCP\EVE\eve.exe"
I'm not running it directly as the game is less crash-prone this way. Here is the issue. When I run the game directly through wine without using the 'explorer' command, my keyboard works correctly. However, when I run wine with 'explorer', I can no longer use the CTRL key in-game. The desktop manager (gdm) still catches CTRL keypresses. In addition, key combinations like ALT+F1, which work correctly in game in the former instance, are sent directly to gdm in the latter.

How can I make it so that Wine will send the keypresses to Eve first, then onto GDM?

My setup:

Wine 1.1.17 + model patch (installed using apt-get source wine; patch; buildpkg; dpkg --- debian toolchain).
Ubuntu 8.10
Dell e1705 laptop (if that matters).

Thanks and regards,

z.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: "wine explorer ..." doesn't catch CTRL keypres

Post by vitamin »

zakaluka wrote:How can I make it so that Wine will send the keypresses to Eve first, then onto GDM?
Disable them in GDM.

Without explorer Wine runs game in full-screen mode. I'm guessing GDM disables all of it's hot-keys. With explorer (aka virtual desktop mode) GDM has all it's hot-keys active. Not much Wine can do about that.
zakaluka
Newbie
Newbie
Posts: 3
Joined: Wed Mar 25, 2009 4:50 pm

Post by zakaluka »

Hi vitamin,

Thanks for the suggestion. I looked at gdm's shortcut keys, and the key combinations I am using are not shortcuts for it.

For example, Eve has a chat window. When you start typing anything in Eve, it automatically puts the text into the chat window. CTRL+R is a shortcut I use to reload my weapons. When running normally, i.e. without virtual desktop mode, CTRL+R does what it is supposed to. When running in VDM, pressing CTRL+R simply puts an 'R' in the chat window. What this tells me is that the CTRL modifier is being removed from the keypress event and being consumed before reaching Eve.

The odd thing is, gdm has no shortcut combination that is CTRL+R. So, the question is, who is consuming the CTRL keypress, gdm or wine's virtual desktop? Is there a configuration option for wine that allows me to pass all keypresses onto games?

Regards,

z.[/i]
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

zakaluka wrote:So, the question is, who is consuming the CTRL keypress, gdm or wine's virtual desktop?
Probably something else, like XIM, keyboard emulator, program that handles special keys, etc.

Virtual desktop doesn't "consume" any keys - it never gets focus.
zakaluka
Newbie
Newbie
Posts: 3
Joined: Wed Mar 25, 2009 4:50 pm

Post by zakaluka »

vitamin wrote:
zakaluka wrote:So, the question is, who is consuming the CTRL keypress, gdm or wine's virtual desktop?
Probably something else, like XIM, keyboard emulator, program that handles special keys, etc.

Virtual desktop doesn't "consume" any keys - it never gets focus.
I'm not so sure about that:
(1) this is a stock english version of Ubuntu 8.10 with no extra services or programs running (and I disabled the ones that were just in case), and
(2) the problem only occurs in virtual desktop mode.

So, going to this mode is obviously adversely affecting the order in which key presses are processed, as gdm is being allowed to deal with key combinations before they are sent to applications running on the virtual desktop.

I can't find a configuration file for wine in ~/.wine (other than the .reg files), so I'm not sure where I could look for configuration variables that affect this. I'll continue waiting for an answer, but I'm not holding out too much hope at this point.

EDIT: SCIM is installed, but I don't think I can get rid of it without disabling all input in gdm. Still, if there is a way to make the game the top application for keypresses, I think it would resolve the problem.

Thanks for your help,

z.
rcriii
Newbie
Newbie
Posts: 1
Joined: Fri Apr 03, 2009 3:54 pm

Post by rcriii »

I had this problem as well. Turning off the setting to display the location of the mouse by hittin ctrl solved it.

System->Preferences->Mouse 'Show position of pointer when Control Key ins pressed'

You know thi sis enabled if you see a circles around the pointer when you hit ctrl. Turning it off enabled the ctrl key in EVE.

Rcriii
Locked