How does this software work?

Asked by robbie

I've wanted to write a program that would visually display a representation of the keyboard and show the keymappings available given the current modifiers. how do you subscribe to keypress data without interrupting it?

Question information

Language:
English Edit question
Status:
Answered
For:
Screenkey Edit question
Assignee:
Pablo SEMINARIO Edit question
Last query:
Last reply:
Revision history for this message
Pablo SEMINARIO (pabluk) said :
#1

Hi Robbie,
When I started to write Screenkey I had the same dilema but I resolved this using some of the key-mon project code.
Basically there are 2 files called devices.py and evdev.py that capture keyboard events, running on a thread in the ListenKbd class.
You can see more details in the code https://code.launchpad.net/screenkey to see how it works, after all this is the essence of free software :)

Saludos!

Can you help with this problem?

Provide an answer of your own, or ask robbie for more information if necessary.

To post a message you must log in.