Переглянути джерело

REVIEWED: `GetMouseWheelMove()`, avoid move scaling on `PLATFORM_WEB`

Tested with latest emscripten 3.1.18
pull/2622/head
Ray 2 роки тому
джерело
коміт
df5514088e
1 змінених файлів з 4 додано та 13 видалено
  1. +4
    -13
      src/rcore.c

+ 4
- 13
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

||||||
x
 
000:0
Завантаження…
Відмінити
Зберегти