Hello everyone,
I'm working on a very small project on SFML, where I spawn square shapes in the render window using left mouse button. However, I have been trying for days to find a way to assign the R button for basically erase or destroy every object on the render window and start again. basically a restart button , without being forced to close the render window.
I appreciate your help:).