Hi, i am struggling to make a button get pressed from code. The reason i want this is because i have shorcuts to simulate button events.
Example:
if (event.key.code == sf::Keyboard::S)
pPrintButton->setPressed();
Well, if i use "leftMouseReleased" function it works however the text color stays on a hover(whatever) state.
Is any cure for this?