GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

using the example code scribble-xinput.c

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Example Code
Author Message
seventeen



Joined: 27 Jul 2007
Posts: 1

PostPosted: Fri Jul 27, 2007 3:52 am    Post subject: using the example code scribble-xinput.c Reply with quote

Hi,
I compiled the source code and excute it.
When I click on the "Input Dialog" button, a window pops out,
In the window,
There are several devices to choose from:
pad-cintiq21ux
stylus-cintiq21ux
eraser-cintiq21ux
cursor-cintiq21ux

and several Mode:
Disabled
Screen
Window

If I choose stylus, then choose screen, there is segmentation
Button press on device 'stylus-cintiq21ux'
I get "segmentation fault (core dumped)"

If I choose other combinations, then nothing happened,
I tried to print out the device source, and it is null.


I do have a tablet that works for a set of applications like inkscape,
Does anyone have similar experience or know how to solve it?

Thanks,
Back to top
caracal
GTK+ Geek


Joined: 21 Jun 2007
Posts: 89
Location: Wilkes Barre Pa

PostPosted: Sun Sep 23, 2007 9:08 pm    Post subject: Reply with quote

Are you using a Wacom Cintiq21UX Tablet?
If your not then that code will not work you will need to look here
http://linuxwacom.sourceforge.net/ &
http://www.gtk.org/~otaylor/xinput/

As far as segmentation fault you need some code to handle errors so instead
of your code crashing it will print a message like "Wacom Cintiq21UX Tablet Not Found"

pad-cintiq21ux
stylus-cintiq21ux
eraser-cintiq21ux
cursor-cintiq21ux

These are not devices. A device would be "cintiq21ux"
These are functions to interact with the "pad, stylus, eraser, cursor" parts of the "cintiq21ux"
wacom device.


Lastly you posted this in the wrong forum this forum is for working example code you should post stuff like with in GTK+ Programming
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Example Code All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP