浏览代码

Check for mouse devices on PLATFORM_DRM

pull/2442/head
Ray 3 年前
父节点
当前提交
a7ce537d32
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/rcore.c

+ 2
- 1
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

正在加载...
取消
保存