C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-03-2002, 01:56 PM   #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.
mike9010 is offline   Reply With Quote
Old 07-03-2002, 10:40 PM   #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
starX is offline   Reply With Quote
Old 07-05-2002, 10:49 AM   #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.
mike9010 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
30something GSOH seeks help with the basics of a minor programme promsan C Programming 3 05-13-2007 08:55 AM


All times are GMT -6. The time now is 01:29 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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