TPU ChatChat on IRC
Internet Relay Chat?
Java Applet client
Who's on IRC?
Programming a joystick as a mouse
Posted by split [send private reply] at June 15, 2003, 11:08:46 PM Hi,
For my current project I am programming a Gravis joystick to act as a mouse. I have completed the parts involving button detection and axis calibration, but I am having trouble getting it to do perform the functions an actual mouse would. Among these, I need to be able to move the cursor in every direction, and use the left and right mouse click buttons.
I have searched Google for just about everything I could think of and asked on various IRC channels but have been unable to find what I need.
Sorry for not mentioning this earlier, but I am doing this under Mandrake Linux 9.1 using KDE 3.1 as my graphical interface. Searching for information on how to do this using the X windows API was already suggested, but my searches did not yield success.
Posted by sphinX [send private reply] at June 16, 2003, 02:19:37 AM why not write some sort of wrapper into your driver that makes X think your joystick is a mouse ... then all you have to do is implement all the functions a normal mouse driver would ... or is that what you're doing already?
Posted by split [send private reply] at June 16, 2003, 11:29:20 AM I forgot to mention, I'm doing this in C.
Posted by split [send private reply] at June 16, 2003, 11:30:04 AM As for the wrapper idea, I'm really not sure how I would do that. Could you talk a little bit more about how it would be done?
Posted by Neumann [send private reply] at June 16, 2003, 11:39:18 AM tss, bad split
this should have been posted on the wiki :)
Posted by split [send private reply] at June 16, 2003, 12:10:25 PM Done. I'm not sure if that'll bring any replies, but oh well.
Posted by Neumann [send private reply] at June 16, 2003, 12:27:07 PM Well, I believe the question was appropriate for the wiki and people still using the forums will eventually have to start using the wiki.
Posted by gian [send private reply] at June 17, 2003, 11:48:21 PM Neumann, for the moment, at least, could we restrict wiki advocacy to one thread? Otherwise you'll gain a reputation much like Psion did for his ML advocacy :-)
Posted by Neumann [send private reply] at June 18, 2003, 06:46:07 AM gian: Haha :) This was posted before my WikiVsForums thread. It doesn't count! :P
Register as a new user