Read keyboard even when app/process not in focus

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Read keyboard even when app/process not in focus

Post by /RaspberryPi »

I am making a terminal app that reads from keyboard/joypad input and performs some tasks based on which key is pressed. How do I make it such that I can assign a specific task to a key and regardless of the state of the process it needs to run the job mapped to this key?

submitted by /u/kagbeni
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”