Mar 20, 2017 at 5:04am Mar 20, 2017 at 5:04am UTC
Hi.
I just have a basic question
In my app screenMain loads with for for instance button A and button B.
Button A loads screenA , button B loads screenB.
But when for instance in screen B and clicking the area of button A , it responds, even though button A is not rendered onto screenB.
how to solve this? I would need to clear a screen before rendering a new screen or such ?
thanks :) !
Mar 20, 2017 at 6:30am Mar 20, 2017 at 6:30am UTC
SDL2 doesn't support buttons. This means you've rolled your own button control.
Just because you don't draw it, doesn't mean you aren't checking to see if it is pressed.
You need to show your code.