Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - stevemartin92

Pages: [1]
1
General / Simulate Keyboard Press
« on: June 10, 2022, 05:12:35 pm »
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?

Pages: [1]