mouse handling and X11
Is there an API that comes with X for mouse handling (i.e. clicks, relative motion,etc). If so, where is there a tutorial or something for it?
I am sorry for asking this, but I am fairly new to programming under linux. I have checked out SDL's input system, but it doesn't seem to work as I am not using an SDL window, and because of that, SDL won't handle the events.
Thanks in advance.
The most popular gui programming toolkits are Qt and GTK+. I think Qt is in c++ and GTK+ is in C, but you might want to double check on that. Doing a google search for either one of those should turn up a few results.
I think you missed the point. I want to be able to handle mouse events. Basically, I am writing a 'mouse' plugin for a program. The only think of usefulness I get is a pointer to the x display. Because that display is not SDL, I can not use it to handle mouse events, so I am looking for some way of handling the events. GTK or QT do not really have support for what I am looking for. Maybe I should look at the xlib api.