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.)
This commit is contained in:
Ryan C. Gordon 2024-08-12 00:58:27 -04:00
parent 3d3f611965
commit 67e0156346
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 1 deletions

View File

@ -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;