GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Dec 22, 2014 5:38 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: using the example code scribble-xinput.c
PostPosted: Fri Jul 27, 2007 3:52 am 
Offline

Joined: Fri Jul 27, 2007 2:49 am
Posts: 1
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,


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 23, 2007 9:08 pm 
Offline
GTK+ Guru

Joined: Thu Jun 21, 2007 1:52 pm
Posts: 198
Location: Wilkes Barre Pa
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group