I’ve been trying to get the pixel coordinates from the SDL_FINGERDOWN event, but I seem to need the screen resolution for this to work.
I created my window using
SDL_CreateWindowAndRenderer(0, 0, 0, &window, &renderer) < 0)
And everything I’ve tried to get a resolution from my window or renderer.
SDL_GetWindowSize(window, windowWidth, windowHeight);
SDL_GetRendererOutputSize(renderer, windowWidth, windowHeight);
SDL_GL_GetDrawableSize(window, windowWidth, windowHeight);
Those just seem to return a 0x0 resolution.
And
SDL_GetWindowSurface(window)
Just crashes my app when I try to get the width or height from the surface.
Does anyone have any other ideas on how to get it to work?