浏览代码

Add some comments on desktop multi-touch

pull/1040/head
Ray 5 年前
父节点
当前提交
8473e94879
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. +8
    -0
      src/core.c

+ 8
- 0
src/core.c 查看文件

@ -2589,8 +2589,16 @@ Vector2 GetTouchPosition(int index)
position.y = position.y*((float)renderHeight/(float)displayHeight) - renderOffsetY/2; position.y = position.y*((float)renderHeight/(float)displayHeight) - renderOffsetY/2;
} }
#elif defined(PLATFORM_RPI) #elif defined(PLATFORM_RPI)
position = touchPosition[index]; position = touchPosition[index];
#else // PLATFORM_DESKTOP #else // PLATFORM_DESKTOP
// TODO: GLFW is not supporting multi-touch input just yet
// https://www.codeproject.com/Articles/668404/Programming-for-Multi-Touch
// https://docs.microsoft.com/en-us/windows/win32/wintouch/getting-started-with-multi-touch-messages
if (index == 0) position = GetMousePosition(); if (index == 0) position = GetMousePosition();
#endif #endif

正在加载...
取消
保存