Page 1 of 1

[0.17.32] [Linux] Key press causes mouse release?

Posted: Tue Apr 23, 2019 2:40 am
by drizzle
I'm seeing some strange interaction between the mouse and keyboard on the latest release it almost seems as if a key press causes a mouse release event and possibly vice versa.

The most obvious symptom is I can no longer click and run to place a line of belts, if I left click to place a belt and then run in a direction only the initial belt gets paced even though I am still holding down the mouse button. If I stand still and just move the mouse I can place a line of belts with one click, but if I press any key like 'z' it causes me to stop placing belts even though I'm still holding the mouse button.

I'm using linux and running the game through steam. I have this problem on 0.17.32 but not on 0.17.31 just tried starting a new single player game with default settings on those two versions.

Re: Key press causes mouse release?

Posted: Tue Apr 23, 2019 4:22 am
by robot256
I have this problem on my Windows laptop sometimes, because it locks the touchpad controls while typing. Probably unrelated since it just started happening, but possibly related to their using different functions to access the keyboard in order to fix layout translation bugs?

Re: [0.17.32] [Linux] Key press causes mouse release?

Posted: Tue Apr 23, 2019 11:31 pm
by drizzle
I'm not using a touchpad this is with a keyboard and mouse on a desktop. Here's the output of xinput --list

⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech K520 id=10 [slave pointer (2)]
⎜ ↳ Logitech Wireless Mouse id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ HD Webcam C525 id=9 [slave keyboard (3)]
↳ Speakup id=12 [slave keyboard (3)]

Re: [0.17.32] [Linux] Key press causes mouse release?

Posted: Wed Apr 24, 2019 9:33 am
by wheybags
What distro/de/wm are you using?
I just tried this on my machine (debian sid/cinnamon) and it works fine.

Re: [0.17.32] [Linux] Key press causes mouse release?

Posted: Wed Apr 24, 2019 12:43 pm
by drizzle
I'm using Slackware 14.2 with xfce with kernel 4.4.157

I see there are some updated available I can try getting those to see if it helps.

Re: [0.17.32] [Linux] Key press causes mouse release?

Posted: Wed Apr 24, 2019 2:06 pm
by wheybags
Ok, I tried on xfce, and I still can't reproduce.
Maybe you have some third party tool listening for global hotkeys or something like that?
Anyway, I will move to 1/0 magic for now since we can't reproduce this.
Sorry about that :(

Re: [0.17.32] [Linux] Key press causes mouse release?

Posted: Thu Apr 25, 2019 12:43 am
by drizzle
Updating to the latest kernel glibc etc didn't help, but I no longer have this problem on 0.17.33

I just tried 0.17.32 and I still have the problem there. I wonder what it could have been :?:

Re: [0.17.32] [Linux] Key press causes mouse release?

Posted: Thu Apr 25, 2019 6:45 am
by posila
Only change in 0.17.32 that that could cause it, that I could have think of, was reseting input state when SDL_KEYMAPCHANGED was received (that's a message that is supposed to indicate change of keyboard layout setting - e.g. user changed layout from US QWERTY to AZERTY). Because of this report I removed that change for 0.17.33 (input state reset is not needed actually, it just needs to update its modifier key mapping) ... but I couldn't verify it actually made any difference.

But it is kind of weird, that pressing keys also invokes SDL_KEYMAPCHANGED events.