I'm having an issue, I'm trying to make an inventory screen, and when the player presses "I" I want the window to show me their inventory, and pause the game, I have done this:
if (sf::Keyboard::isKeyPressed(sf::Keyboard::I)){
window.draw(BAG);
}
//BAG is inventory screen;
I get no compile errors, and my game runs, but, It just displays without me pressing "I", "I" does nothing.
P.S. I've only been learning SFML for about a week now, so please don't be angry if I made a newbish mistake.