summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <[email protected]>2019-12-16 18:06:48 +0100
committerRay <[email protected]>2019-12-16 18:06:48 +0100
commit8473e94879505c68cdd30665d0b1982e68b5b759 (patch)
treedf8cc5f720f4d2e1ca31f6c01b4e90a974042453 /src/core.c
parent8dece6a179761fc1a40adea44f44d614f82fda21 (diff)
downloadraylib-8473e94879505c68cdd30665d0b1982e68b5b759.tar.gz
raylib-8473e94879505c68cdd30665d0b1982e68b5b759.zip
Add some comments on desktop multi-touch
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 5eb9a556..ef37ba2a 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2589,8 +2589,16 @@ Vector2 GetTouchPosition(int index)
position.y = position.y*((float)renderHeight/(float)displayHeight) - renderOffsetY/2;
}
#elif defined(PLATFORM_RPI)
+
position = touchPosition[index];
+
#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();
#endif