Przeglądaj źródła

Mouse offset and scaling must be considered also on web!

pull/3298/head
Ray 1 rok temu
rodzic
commit
d7debba222
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/rcore.c

+ 1
- 1
src/rcore.c Wyświetl plik

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

||||||
x
 
000:0
Ładowanie…
Anuluj
Zapisz