4
\$\begingroup\$

I'm developing an app under C++ and SDL running in Ubuntu. I'm using the SDL events to handle the keypad buttons. My problem is that my app launch other programs and it should close they with a key combination, but I can't detect the user presing buttons outside of my app.

¿How could I do this?

\$\endgroup\$
3
\$\begingroup\$

XGrabKey if you're using an x environment (you probably are, unless you know otherwise)

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.