I am trying to make use of
global hotkeys in my C++ SFML program.
Specifically, I am trying to do that when the program is
out of focus and invisible. The second is achievable by calling setVisible(false).
So, I
have success using:
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Left))
I just poll keyboard every 10 milliseconds and it works.
BUT it works only only on windows and linux.
Does not work on mac.On mac, it works only when window is in focus.
Is there a workaround?
Could anyone
please help me achieve the functionality?