Author Topic: Keystroike Capturing routine  (Read 2884 times)

Offline MrJay

  • Jr. Member
  • *
  • Posts: 2
Keystroike Capturing routine
« on: October 10, 2014, 03:11:16 AM »
                                                                                                                                                                                                                   
I'm just starting to think about a little bit larger program.   I am also trying to create a test that I can show a friend who is author of a fairly wide ranging program how things look and work on Linux.  I would like to steal the keyboard data looking for some special keystrokes and passing the rest.   I have vague memories of swiping an interrupt (In PCDOS)  and replacing the vector to my routine and having my routine go to where ever the interrupt originally went.   This memory is from pre Windows days   Digging into Linux is very new to me so I would appreciate any comments.  Second question.   It seems like there are an endless number of ways to write to the screen    Xm Cairo, Gtk etc.    From reading I think I've understood that have X do my drawing it assures me                                                                                                                                                                                                                                                                                          my routine works across a variety of distros.   I've written one routine using Cairo and it seems easier to understand then X but I'm more interested in speed then anything else.   If anyone has an opinion on that I would love to hear it.   

Would you say using gtk is the obvious way to do things like pull down menus or?