mouse handling and X11

This is a discussion on mouse handling and X11 within the Linux Programming forums, part of the Platform Specific Boards category; Is there an API that comes with X for mouse handling (i.e. clicks, relative motion,etc). If so, where is there ...

  1. #1
    Registered User mike9010's Avatar
    Join Date
    Jan 2002
    Posts
    6

    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.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    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.

    starX
    www.axisoftime.com

  3. #3
    Registered User mike9010's Avatar
    Join Date
    Jan 2002
    Posts
    6
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 05-13-2007, 09:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21