mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-11 03:11:33 -10:00
SDL3 hands the frontend the mouse's frame, the fingers that are down and the pen once a poll, and its own answers for the mouse, the pointer and the lightgun's aim are deleted. Fingers are read before the pen and the pen before the mouse, as before. What the store learned for it: - how many pointers are down (RETRO_DEVICE_ID_POINTER_COUNT): the touches that are, else the mouse standing for one. SDL3 answered this; the drivers converted before it gave 0, and now give the count too; - a pointer placed as the lightgun is, -0x8000 outside the viewport, where the other drivers hold it to the edge (INPUT_POINTERS_POINTER_OFFSCREEN); - a touch read alone (INPUT_POINTERS_TOUCH_ALONE): a pen in the air is a pointer that is not pressed, whatever the mouse's buttons say. A touch is placed either way once a poll, as a mouse is. pointer_frame_test covers the count and both flags.