SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Windows Ink (pen tablet input) doesn't generate SDL_EVENT_MOUSE_MOTION events in fullscreen

Open Susko3 opened this issue 1 year ago • 1 comments

  • Originally reported in https://github.com/ppy/osu/issues/30641

Moving the pen over the tablet (without pressing down) generates SDL_EVENT_MOUSE_MOTION events when in windowed. But setting the window to fullscreen, the events suddenly stop arriving.

If the pen is pressed down, SDL_EVENT_FINGER_MOTION events (with touch name = "pen") arrive as expected, in windowed and fullscreen.

Susko3 avatar Nov 15 '24 12:11 Susko3

Related issue https://github.com/libsdl-org/SDL/issues/11479

DennyLindberg avatar Nov 16 '24 10:11 DennyLindberg

I haven't tested this since Windows Ink support landed; does this plus #11869 settle this issue out?

icculus avatar Jan 06 '25 18:01 icculus

Okay, I tested this, and we send virtual mouse events (which=SDL_PEN_MOUSEID) when Windows Ink pens are touching the drawing surface. I'm about to push a change that lets them report mouse motion without a left button press when not touching, which I've tested on Windows.

icculus avatar Jan 19 '25 02:01 icculus