Forráskód Böngészése

pen: Fixed a comment about Web APIs.

(Emscripten has nothing to do with this limitation, as this is what the
Javascript Pointer Events API offers.)
Ryan C. Gordon 8 hónapja
szülő
commit
67e0156346
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/video/emscripten/SDL_emscriptenevents.c

+ 1 - 1
src/video/emscripten/SDL_emscriptenevents.c

@@ -700,7 +700,7 @@ static void Emscripten_UpdatePointerFromEvent(SDL_WindowData *window_data, const
 
 EMSCRIPTEN_KEEPALIVE void Emscripten_HandlePointerEnter(SDL_WindowData *window_data, const Emscripten_PointerEvent *event)
 {
-    // Emscripten offers almost none of this information as specifics, but can without warning offer any of these specific things.
+    // Web browsers offer almost none of this information as specifics, but can without warning offer any of these specific things.
     SDL_PenInfo peninfo;
     SDL_zero(peninfo);
     peninfo.capabilities = SDL_PEN_CAPABILITY_PRESSURE | SDL_PEN_CAPABILITY_ROTATION | SDL_PEN_CAPABILITY_XTILT | SDL_PEN_CAPABILITY_YTILT | SDL_PEN_CAPABILITY_TANGENTIAL_PRESSURE | SDL_PEN_CAPABILITY_ERASER;