Hi, someone knows to make that? I have a camera with one sdl rect (the viewport), the screen coordinates it’s not the same as the viewport and I’ve tried to convert with: mouseX = event.button.x * (viewportWidth/screenWidth). But witohout sucess, because I think that SDL reconvert the mouseX in the draw functions.
Can anyone help me? I dont’ know anymore what to do.