Weird Keystroke Errors

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Nikitis
Newbie
Newbie
Posts: 1
Joined: Fri Mar 06, 2009 10:22 am

Weird Keystroke Errors

Post by Nikitis »

Here is my system
Fedora 10
Avant Stellar Keyboard (uses Northgate Omnikey 101 layout)
wine 1.1.14, 1.1.15, and 1.1.16

Problem:
While in game, doesn't matter which, I've tried this with World of Warcraft, and Counter-strike. I have a problem with keystrokes registering 2 keystrokes behind.

Example: While typing in game if I type the word "Anyone" the 'A' and 'n' do not show up, but when I get to the 'y' the 'A' shows up, and when I get to the 'o' the first 'n' shows up. This is with text.

Example2: Say i'm moving around in WoW or in Counter-strike. I decide to hit the 'a' keystroke nothing happens, but when I hit 'a' a second time, the characters turn, but keep turning even after I let go of the 'a' key. and it doesn't stop.

Example3: If I were to hit 'a' to turn left, but then hit 'd' to turn right, nothing happens. It only seems to turn once hit twice, and this is the same with all keys, not just turn direction. If I hit 'esc' the menu should come up. Nothing happens, but if I hit it twice it comes up. However, if i'm stuck in the turn loop by hitting 'a' twice, i sometimes have to hit 'esc' multiple times in order to get the menu up.

My guesses: They are just guesses, but it seems to be something to do with a buffering of keystrokes or something. Take this with a grain of salt.

What works: Everything except for games played in Wine. Notepad even seems to work properly. Also, i typed this entry into the forums on the same keyboard, everything in Fedora works. Just the games in Wine do not.

What I've tried: I've deleted .wine and created a new one. Tried those three versions of wine mentioned above. It's the same results.
Please help me if you can. I do not wish to have to downgrade to windows to play my games. ;(
User avatar
FatButtLarry
Level 3
Level 3
Posts: 70
Joined: Sat Feb 23, 2008 1:08 pm

Weird Keystroke Errors

Post by FatButtLarry »

Nikitis,

I don't have a resolution, but I can help steer you into the right
direction...

Keystroke in video games are different than those used in notepad because
they talk to the hardware differently.

Notepad uses the operating system's "buffer", where videogames talk directly
to the hardware. An example of this is if you strafe left in counterstrike,
you begin moving immediately to one direction with no lag. However, if you
hold that same key down in notepad, it only draws one character. A moment
later it begins drawing subsequent characters at a "type-a-matic" setting
thats in your bios.

So that said, in the windows world, this is called "DirectInput" and is part
of DirectX. Wine maps linux keyboard calls directly to windows games
bypassing the need for DirectX to be installed.

So to accurately test the issue, try installing a non-wine game and see if
the behavior exists. A good candidate is "neverball". If you're using a
debian/ubuntu based distro try: sudo apt-get install neverball.

Let me know if this helps!

-Tres

On Fri, Mar 6, 2009 at 10:33 AM, Nikitis <[email protected]> wrote:
Here is my system
Fedora 10
Avant Stellar Keyboard (uses Northgate Omnikey 101 layout)
wine 1.1.14, 1.1.15, and 1.1.16

Problem:
While in game, doesn't matter which, I've tried this with World of
Warcraft, and Counter-strike. I have a problem with keystrokes registering
2 keystrokes behind.

Example: While typing in game if I type the word "Anyone" the 'A' and 'n'
do not show up, but when I get to the 'y' the 'A' shows up, and when I get
to the 'o' the first 'n' shows up. This is with text.

Example2: Say i'm moving around in WoW or in Counter-strike. I decide to
hit the 'a' keystroke nothing happens, but when I hit 'a' a second time, the
characters turn, but keep turning even after I let go of the 'a' key. and
it doesn't stop.

Example3: If I were to hit 'a' to turn left, but then hit 'd' to turn
right, nothing happens. It only seems to turn once hit twice, and this is
the same with all keys, not just turn direction. If I hit 'esc' the menu
should come up. Nothing happens, but if I hit it twice it comes up.
However, if i'm stuck in the turn loop by hitting 'a' twice, i sometimes
have to hit 'esc' multiple times in order to the the menu up.

My guesses: They are just guesses, but it seems to be something to do with
a buffering of keystrokes or something. Take this with a grain of salt.

What works: Everything except for games played in Wine. Notepad even
seems to work properly. Also, i typed this entry into the forums on the
same keyboard, everything in Fedora works. Just the games in Wine do not.

Please help me if you can. I do not wish to have to downgrade to windows
to play my games. ;(





--
- [email protected]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
quad
Newbie
Newbie
Posts: 3
Joined: Sun Mar 08, 2009 12:31 am

Post by quad »

I'm having the exact same problem... after updating fedora last night.

I normally browse over the updates to see what goodies may be coming... Among the updates I noticed the following three:

kernel-2.6.27.19-170.2.35.fc10.x86_64
xorg-x11-server-Xorg-1.5.3-13.fc10.x86_64
xorg-x11-drv-evdev-2.1.3-1.fc10.x86_64

The X ones came with a note saying they're patching issues with the keyboard (XKBCOMP or something?). Didn't read the kernel notes.

Wine wasn't updated anyway and nothing else remotely low level was updated/installed :(
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

quad wrote:The X ones came with a note saying they're patching issues with the keyboard (XKBCOMP or something?). Didn't read the kernel notes.
That's a bug in Fedora's xsim module. You have to get the latest updates and reboot your PC (restarting X is not enough).
quad
Newbie
Newbie
Posts: 3
Joined: Sun Mar 08, 2009 12:31 am

Post by quad »

vitamin wrote:
quad wrote:The X ones came with a note saying they're patching issues with the keyboard (XKBCOMP or something?). Didn't read the kernel notes.
That's a bug in Fedora's xsim module. You have to get the latest updates and reboot your PC (restarting X is not enough).

Grr... read the posts. It's the latest updates (and an implied reboot due to new kernel) that caused this.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

quad wrote:Grr... read the posts. It's the latest updates (and an implied reboot due to new kernel) that caused this.
Then disable all xsims keyboard switchers, emulators, etc.

Counter Strike does not use dinput so no extra layers. Report your bug to RedHat.
Locked