Public bug reported:

At least in the game Nexuiz, mouse and keyboard input sometimes gets
"queued up".

As in: I click around wildly in the menu (this seems to "invite" the bug
fast). After that, I can click options, and they won't activate until I
move the mouse a bit. Or, I move the mouse right, stop for some seconds,
then move it DOWN - and it still goes RIGHT a little.

I debugged this a bit in the Nexuiz source and came to the conclusion
that the event loop does not even SEE these events, so this probably
can't be a bug in Nexuiz:

in vid_glx.c, the function HandleEvents() is just a simple loop of the
form:

        while (XPending(vidx11_display))
        {
                XNextEvent(vidx11_display, &event);
                ...
        }

Inside this loop, there is no "return" or "goto", so this must handle
all events that are queued up. Also, I get the very same problem when
using the SDL build of Nexuiz, which uses a completely different event
loop, namely a while(SDL_PollEvent(&event)) loop, with which there
should be nothing wrong.

I managed to work around this problem by switching away from evdev to
mouse, by adding these lines to xorg.conf:

Section "ServerFlags"
        Option "AutoAddDevices" "False"
EndSection

Section "InputDevice"
        Identifier "mouse"
        Driver     "mouse"
        Option     "CorePointer" "True"

        Option     "Emulate3Buttons" "False"
EndSection

Section "InputDevice"
        Identifier "kbd"
        Driver     "keyboard"
        Option     "CoreKeyboard" "True"

        Option     "XkbRules" "xorg"
        Option     "XkbModel" "pc105"
        Option     "XkbLayout" "de"
        Option     "XkbVariant" "nodeadkeys"
EndSection

This shows that the problem must be evdev related.

As I have this report open now, I'll submit it, then remove that
workaround from my xorg.conf and try to reproduce it with DGA disabled.

** Affects: xorg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
mouse/keyboard events getting delayed in games
https://bugs.launchpad.net/bugs/295912
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to