mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-20 18:28:15 +00:00
fixed wrong error message for input device on RPI (#1379)
* fixed wrong error message for input device * error message without errnofor input device on RPI to prevent from including additional header Co-authored-by: kkl <klingenberger@bfmc.de>
This commit is contained in:
@@ -4661,7 +4661,7 @@ static void EventThreadSpawn(char *device)
|
|||||||
fd = open(device, O_RDONLY | O_NONBLOCK);
|
fd = open(device, O_RDONLY | O_NONBLOCK);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
{
|
{
|
||||||
TRACELOG(LOG_WARNING, "RPI: Failed to open input device (error: %d)", device, worker->fd);
|
TRACELOG(LOG_WARNING, "RPI: Failed to open input device %s", device);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
worker->fd = fd;
|
worker->fd = fd;
|
||||||
|
Reference in New Issue
Block a user