This commit is contained in:
Reece Mackie 2020-04-30 16:31:43 +01:00
parent 01cd6b9a7c
commit 12d126701d
2 changed files with 3 additions and 3 deletions

View File

@ -2689,7 +2689,7 @@ int GetTouchX(void)
{
#if defined(PLATFORM_ANDROID) || defined(PLATFORM_WEB) || defined(PLATFORM_UWP)
return (int)CORE.Input.Touch.position[0].x;
#else // PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_UWP
#else // PLATFORM_DESKTOP, PLATFORM_RPI
return GetMouseX();
#endif
}
@ -2699,7 +2699,7 @@ int GetTouchY(void)
{
#if defined(PLATFORM_ANDROID) || defined(PLATFORM_WEB) || defined(PLATFORM_UWP)
return (int)CORE.Input.Touch.position[0].y;
#else // PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_UWP
#else // PLATFORM_DESKTOP, PLATFORM_RPI
return GetMouseY();
#endif
}

View File

@ -5,7 +5,7 @@
*
* LICENSE: zlib/libpng
*
* Copyright (c) 2014-2020 Ramon Santamaria (@raysan5)
* Copyright (c) 2020-2020 Reece Mackie (@Rover656)
*
* This software is provided "as-is", without any express or implied warranty. In no event
* will the authors be held liable for any damages arising from the use of this software.