summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-04-26 09:30:20 +0200
committerRay <[email protected]>2022-04-26 09:30:20 +0200
commita7ce537d3217ab7e1379d0a765942039d0c333d8 (patch)
tree62d162a291b67ad4f28209b115357b42e4143172 /src
parent38a3523f5907803ecbb0ed9b90cb00a8817c1548 (diff)
downloadraylib-a7ce537d3217ab7e1379d0a765942039d0c333d8.tar.gz
raylib-a7ce537d3217ab7e1379d0a765942039d0c333d8.zip
Check for mouse devices on PLATFORM_DRM
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 9ce36972..88695bb3 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -5979,7 +5979,8 @@ static void InitEvdevInput(void)
{
while ((entity = readdir(directory)) != NULL)
{
- if (strncmp("event", entity->d_name, strlen("event")) == 0) // Search for devices named "event*"
+ if ((strncmp("event", entity->d_name, strlen("event")) == 0) || // Search for devices named "event*"
+ (strncmp("mouse", entity->d_name, strlen("mouse")) == 0)) // Search for devices named "mouse*"
{
sprintf(path, "%s%s", DEFAULT_EVDEV_PATH, entity->d_name);
ConfigureEvdevDevice(path); // Configure the device if appropriate