virtualx-engine/platform
PouleyKetchoupp 2c4d64102a Fix general keyboard input lag on X11 display server
This change makes keyboard inputs more responsive on Linux, especially
when the FPS is lower on slower configurations.

Polling events from the x server is done on a separate thread to avoid a
frame delay with inputs, due to first sending the event to the input
manager with XFilterEvent then processing the new event only on the next
frame.

Calls to Input Manager functions like XSetICFocus, XUnsetICFocus and
XSetICValues use a mutex, because they are polling events internally and
would otherwise interfere with our own thread process for polling events
which can cause a deadlock in some cases.

XUnsetICFocus is called instead of XSetICFocus on FocusOut events,
so the input manager can be properly notified of focus changes.

clipboard_get now uses a blocking call to poll for a specific event type
when waiting for a SelectionNotify event, instead of polling all events
and filtering them afterwards.
2020-09-24 16:01:41 +02:00
..
android Add overridable init method for the Godot fragment instance. 2020-09-18 16:59:09 -07:00
iphone Fix typos with codespell 2020-09-18 13:44:25 +02:00
javascript JS synchronous start, better persistent FS sync. 2020-09-23 09:51:06 +02:00
linuxbsd Fix general keyboard input lag on X11 display server 2020-09-24 16:01:41 +02:00
osx Add window click-through support. 2020-09-17 12:36:18 +03:00
server Linux/BSD: Fix support for NetBSD 2020-09-18 10:27:55 +02:00
uwp Only display the Windows toggle console option if it can actually be used 2020-09-14 21:52:04 +02:00
windows Fix typos with codespell 2020-09-18 13:44:25 +02:00
register_platform_apis.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00