summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2022-08-02 18:07:44 +0200
committerRay <[email protected]>2022-08-02 18:07:44 +0200
commitdf5514088eaa7e5e7d2d589f4adc278897106ddc (patch)
treef5467fb3d7598882597f7c4c01c9676dcbf9f256 /src
parent312fa64b8850c2971ddb0139cb81288922e318b6 (diff)
downloadraylib-df5514088eaa7e5e7d2d589f4adc278897106ddc.tar.gz
raylib-df5514088eaa7e5e7d2d589f4adc278897106ddc.zip
REVIEWED: `GetMouseWheelMove()`, avoid move scaling on `PLATFORM_WEB`
Tested with latest emscripten 3.1.18
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 50d284d1..dafc7dc1 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -3765,26 +3765,17 @@ float GetMouseWheelMove(void)
else result = (float)CORE.Input.Mouse.currentWheelMove.y;
#endif
-#if defined(PLATFORM_WEB)
- result /= 100.0f;
-#endif
-
return result;
}
// Get mouse wheel movement X/Y as a vector
Vector2 GetMouseWheelMoveV(void)
{
-#if defined(PLATFORM_ANDROID)
- return (Vector2){ 0.0f, 0.0f };
-#endif
-#if defined(PLATFORM_WEB)
- Vector2 result = CORE.Input.Mouse.currentWheelMove;
- result.x /= 100.0f;
- result.y /= 100.0f;
-#endif
+ Vector2 result = { 0 };
+
+ result = CORE.Input.Mouse.currentWheelMove;
- return CORE.Input.Mouse.currentWheelMove;
+ return result;
}
// Set mouse cursor