Reviewed latest PR
This commit is contained in:
parent
e1e0bc4266
commit
ad56a49da8
1 changed files with 6 additions and 7 deletions
13
src/rcore.c
13
src/rcore.c
|
@ -3887,16 +3887,15 @@ void SetMouseScale(float scaleX, float scaleY)
|
||||||
// Get mouse wheel movement Y
|
// Get mouse wheel movement Y
|
||||||
float GetMouseWheelMove(void)
|
float GetMouseWheelMove(void)
|
||||||
{
|
{
|
||||||
#if defined(PLATFORM_ANDROID)
|
float result = 0.0f;
|
||||||
return 0.0f;
|
|
||||||
|
#if !defined(PLATFORM_ANDROID)
|
||||||
|
if (fabsf(CORE.Input.Mouse.currentWheelMove.x) > fabsf(CORE.Input.Mouse.currentWheelMove.y)) result = (float)CORE.Input.Mouse.currentWheelMove.x;
|
||||||
|
else result = (float)CORE.Input.Mouse.currentWheelMove.y;
|
||||||
#endif
|
#endif
|
||||||
Vector2 wm = CORE.Input.Mouse.currentWheelMove;
|
|
||||||
float result;
|
|
||||||
if (fabs(wm.x) > fabs(wm.y)) result = (float)wm.x;
|
|
||||||
else result = (float)wm.y;
|
|
||||||
|
|
||||||
#if defined(PLATFORM_WEB)
|
#if defined(PLATFORM_WEB)
|
||||||
return result/100.0f;
|
result =/ 100.0f;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue