-
September 5th, 2009, 07:48 PM
#1
Keyboard Shortcuts in Linux
I wish to write a program in C++ that will run a process in the background and listen for certain key-combinations (at which point it will preform various actions). I know how to create processes, but I am at a loss for how to listen for which keys are being pressed. I noticed that /dev/input has several files which respond to keyboard strokes, but I do not know how to read them in a C++ program or if there is a better way to do this.
Thanks!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|