Hello, I'm looking to be able to write code that enters a keyboard press. I've had success being able to manipulate the position of the mouse using sf::Mouse::setPosition() and now I would like to do the same with the keyboard.
For example... Let's say that once a second I want the code to send a key press of A. So that if my cursor is in a text box... the code can type in the key A 'on its own'.
How can I do this?