Avoid references to PLATFORM_ flags #3313

This commit is contained in:
Ray
2023-10-09 10:51:37 +02:00
parent 33c84b3c00
commit f86f4159e6
5 changed files with 135 additions and 143 deletions

View File

@@ -20,8 +20,8 @@
* - TRACELOG() function is located in raylib [utils] module
*
* CONFIGURATION:
* #define RCORE_DESKTOP_CUSTOM_FLAG
* Custom flag for rcore on PLATFORM_DESKTOP -not used-
* #define RCORE_PLATFORM_CUSTOM_FLAG
* Custom flag for rcore on target platform -not used-
*
* DEPENDENCIES:
* rglfw - Manage graphic device, OpenGL context and inputs (Windows, Linux, OSX, FreeBSD...)
@@ -1368,8 +1368,6 @@ void PollInputEvents(void)
for (int i = 0; i < MAX_TOUCH_POINTS; i++) CORE.Input.Touch.previousTouchState[i] = CORE.Input.Touch.currentTouchState[i];
// Reset touch positions
// TODO: It resets on PLATFORM_WEB the mouse position and not filled again until a move-event,
// so, if mouse is not moved it returns a (0, 0) position... this behaviour should be reviewed!
//for (int i = 0; i < MAX_TOUCH_POINTS; i++) CORE.Input.Touch.position[i] = (Vector2){ 0, 0 };
// Check if gamepads are ready