Open Susko3 opened 1 week ago
Oh, yeah, I think I intended to normalize these coordinates, like touch events, and it turned out it wasn't possible. I'll double-check this.
You should probably also update SDL_ConvertEventToRenderCoordinates
to handle pen events when you figure out the coordinate space.
The docs mention that
x
andy
members ofSDL_PenMotionEvent
correspond to the position of the pen on the tablet. But there is no way for an application to query the size of this 'tablet' -- no way to map them correctly to the game window.I think it would make sense that these coordinates are in
SDL_Window
space.Also,
SDL_PEN_AXIS_XTILT
andSDL_PEN_AXIS_YTILT
mention a non-existentSDL_PenCapabilityInfo
function.