I have this function to process inputs:
void sfml_game::process_input(){
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Left)) m_game.get_camera().move(sf::Vector2f(-1, 0));
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Right)) m_game.get_camera().move(sf::Vector2f(1, 0));
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Up)) m_game.get_camera().move(sf::Vector2f(0, -1));
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Down)) m_game.get_camera().move(sf::Vector2f(0, 1));
if(sf::Keyboard::isKeyPressed(sf::Keyboard::F3)) m_debug_items = !m_debug_items;
}
Now I want to disable key repetition for F3 only, because I use it to toggle something. In it current state it just loops trough until I release the button. Is it possible to disable key repetition for one button only?