Am 21.05.2011 02:44, schrieb Denis Auroux:
> On 05/20/2011 02:39 PM, D M German wrote:
>> With the laptops having more than one input device (mine has stylus,
>> touch, and eraser) what would be needed to improve xournal to take
>> advantage of it?
>>
>> What I am thinking is that I would like to map each of these to a
>> different tool.
> Mostly some UI coding to have an interface to select the tools for each 
> device, if you'd like to be able to customize that.
>
> If you're ok with a quick hack and no customization, just look at how 
> the "eraser tip" option works and adapt as needed. (there's two parts: 
> at init time, when we read the list of Gdk input devices, we see if 
> anyone has a name that sounds like an eraser and set a flag for it. And 
> in xo-callbacks.c, when an event comes in, if it comes from the eraser 
> and the "eraser tip" option is set, we bypass the normal tool settings.
>
> But since Andreas is already going to do it properly in Xournal++, I 
> don't think it's worth the trouble at this point.

My configuration is not complete customizeable.

You can select a tool for the eraser, a tool for right and middle click
and a tool for your touch screen.

This is easy to configure and understand, and usually you don't have
more devices.

(Else if there are new input devices or I didn't think about a common
case we may add an additional configuration....)


Implementation details:
For the touchscreen you have also to select the device, because I don't
know which device is the touchscreen.

You can also disable your touchscreen for drawing, so if you touch the
screen first with your hand and later with the pen there is no change in
the document.

And if you start drawing (don't matter with which device) all other
devices are disabled for drawing. So if you are drawing and your
touchscreen generates also input this is not handled (I don't have a
touchscreen, but a friend of my had such problems with the current
Xournal, so I added all this cases...).
Ah yes, and if somebody move your mouse while you are drawing nothing
happens also, I have often connect a mouse to my tablet, and we don't
have so much space in the lecture hall;-)


Andreas

> Denis
>
>


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Xournal-devel mailing list
Xournal-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xournal-devel

Reply via email to