You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Microsoft docs explicitly call this out as undefined behaviour:
If an application selectively consumes some pointer input and passes the rest to DefWindowProc, the resulting behavior is undefined.
The wording is unclear. Perhaps this is trying to tell that all message types (e.g. WM_POINTERDOWN, WM_POINTERCAPTURECHANGED, etc.) for a given pointer type (PT_*) should be handled.
But even if you take this lenient definition, SDL may still violates it as it ignores pens it "doesn't already know about" and doesn't handle all pointer message types.
The side effects of not following the documentation might include (completely untested, just educated guesses):
touch input not working properly (PT_TOUCH)
windows precision touchpad input not working properly (PT_TOUCHPAD)
SDL pen handling on Windows will selectively handle some (pen) pointer events while ignoring the rest and passing it to
DefWindowProc
.SDL/src/video/windows/SDL_windowsevents.c
Lines 1145 to 1146 in a4cd17c
Microsoft docs explicitly call this out as undefined behaviour:
The wording is unclear. Perhaps this is trying to tell that all message types (e.g.
WM_POINTERDOWN
,WM_POINTERCAPTURECHANGED
, etc.) for a given pointer type (PT_*
) should be handled.But even if you take this lenient definition, SDL may still violates it as it ignores pens it "doesn't already know about" and doesn't handle all pointer message types.
The side effects of not following the documentation might include (completely untested, just educated guesses):
PT_TOUCH
)PT_TOUCHPAD
)PT_MOUSE
)The text was updated successfully, but these errors were encountered: