Parcourir la source

Mouse offset and scaling must be considered also on web!

pull/3298/head
Ray il y a 1 an
Parent
révision
d7debba222
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      src/rcore.c

+ 1
- 1
src/rcore.c Voir le fichier

@ -4051,7 +4051,7 @@ Vector2 GetMousePosition(void)
{
Vector2 position = { 0 };
#if defined(PLATFORM_ANDROID) || defined(PLATFORM_WEB)
#if defined(PLATFORM_ANDROID) //|| defined(PLATFORM_WEB)
position = GetTouchPosition(0);
#else
position.x = (CORE.Input.Mouse.currentPosition.x + CORE.Input.Mouse.offset.x)*CORE.Input.Mouse.scale.x;

Chargement…
Annuler
Enregistrer