Linux build of my game sometimes ignores key input

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Wombyte

I made two builds of my game, one Linux native and one Windows.

However Windows runs fine on my Ubuntu 20.04 (using Wine), but the Linux native got a problem: It sometimes ignores the key input from my keyboard.

So in my game you control a ship and can move it around by using WASD or Arrow-Keys.
But sometimes the game won’t react on those button inputs. Or it won’t stop with a specific movement if you stop pressing the WASD key.

I don’t have that problem if I test the game in Godot editor and neither me, nor my Windows testers got that problem when they tested the Win release of the game.

Is there something I can do so that I don’t have to drop Linux support for my game?

This issue has been reported on GitHub, but nobody knows what’s causing it exactly: Input events are occasionally skipped (regression from input handling changes in 3.3) · Issue #48369 · godotengine/godot · GitHub

I can’t reproduce it on my side.

Calinou | 2021-06-03 20:26

:bust_in_silhouette: Reply From: wyattb

My suggestion is to test your game on an Ubuntu bootable stick. It’s possible there are some other apps that interfere.

Boot up the stick and install your game on it.

https://ubuntu.com/tutorials/create-a-usb-stick-on-ubuntu#1-overview

I checked it on my girlfriends laptop (we made a clean install of Ubuntu 20.04 today) and its the same issue.

The issue does not appear if I use the windows build (using Wine)

Wombyte | 2021-06-02 13:28