 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
seventeen
Joined: 27 Jul 2007 Posts: 1
|
Posted: Fri Jul 27, 2007 3:52 am Post subject: using the example code scribble-xinput.c |
|
|
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
|
Posted: Sun Sep 23, 2007 9:08 pm Post subject: |
|
|
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 |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|