diff options
| author | ubkp <[email protected]> | 2023-10-29 16:55:02 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-29 20:55:02 +0100 |
| commit | 049a6d475ddb10b81ccd896c05c7c6b878d499d8 (patch) | |
| tree | 88936a2e8545811a557e3ee62b90c17bafc9befe /src | |
| parent | 09075d515af4fcf3caca8c494e7bcf71d64060da (diff) | |
| download | raylib-049a6d475ddb10b81ccd896c05c7c6b878d499d8.tar.gz raylib-049a6d475ddb10b81ccd896c05c7c6b878d499d8.zip | |
Fix drm hang up on exit and mouse input issues (#3484)
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/rcore_drm.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/platforms/rcore_drm.c b/src/platforms/rcore_drm.c index 6f459b1a..82701e31 100644 --- a/src/platforms/rcore_drm.c +++ b/src/platforms/rcore_drm.c @@ -906,6 +906,12 @@ int InitPlatform(void) rlLoadExtensions(eglGetProcAddress); //---------------------------------------------------------------------------- + // Initialize timming system + //---------------------------------------------------------------------------- + // NOTE: timming system must be initialized before the input events system + InitTimer(); + //---------------------------------------------------------------------------- + // Initialize input events system //---------------------------------------------------------------------------- InitEvdevInput(); // Evdev inputs initialization @@ -913,11 +919,6 @@ int InitPlatform(void) InitKeyboard(); // Keyboard init (stdin) //---------------------------------------------------------------------------- - // Initialize timming system - //---------------------------------------------------------------------------- - InitTimer(); - //---------------------------------------------------------------------------- - // Initialize storage system //---------------------------------------------------------------------------- CORE.Storage.basePath = GetWorkingDirectory(); |
