Преглед на файлове

Fix Touch pointCount for web (#3163)

pull/3166/head
ubkp преди 2 години
committed by GitHub
родител
ревизия
4b6cbd2340
No known key found for this signature in database GPG ключ ID: 4AEE18F83AFDEB23
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. +3
    -0
      src/rcore.c

+ 3
- 0
src/rcore.c Целия файл

@ -6139,6 +6139,9 @@ static EM_BOOL EmscriptenTouchCallback(int eventType, const EmscriptenTouchEvent
// Gesture data is sent to gestures system for processing
ProcessGestureEvent(gestureEvent);
// Reset the pointCount for web, if it was the last Touch End event
if (eventType == EMSCRIPTEN_EVENT_TOUCHEND && CORE.Input.Touch.pointCount == 1) CORE.Input.Touch.pointCount = 0;
#endif
return 1; // The event was consumed by the callback handler

Зареждане…
Отказ
Запис