On Wed, Mar 30, 2011 at 9:04 PM, Peter Hutterer
<peter.hutte...@who-t.net> wrote:
> On Wed, Mar 30, 2011 at 01:54:45PM -0700, Jason Gerecke wrote:
>> Since the worker functions now check that they have the appropriate
>> number of arguments, its possible to decrease the number of arguments
>> required by 'set'. Since all it really needs is a device number and
>> a property, the minimum argc is now 2.
>>
>> A handy side-effect of this change is that its now possible to run
>> e.g. `xsetwacom --set $ID StripLeftDown` to reset the action to
>> its default.
>
> is that because we delete the property then so it falls back to using the
> button mapping?
>
Correct.

> this formulation is a bit unfortunate, since it doesn't actually set to the
> default. if I map the button to say 8, then run the above command it would
> revert back to 8, not to the default (4 or whatever it is), right?
>
> Cheers,
>  Peter
>
I'm not quite sure what you mean here. If no action has been defined,
the driver falls back to its predefined button. If you run e.g.
`xsetwacom --set $ID LeftStripUp 8`, the action "button +8" is
assigned (because of parse_action's simple button handling). When you
move your finger along the strip, the driver notices an action has
been set and will send the button 8 event. If you then run `xsetwacom
--set $ID LeftStripUp` the action is deleted. Moving your finger along
the strip again, the driver will not find an action and fall back to
its predefined mapping (which should be button 5)

Though, If you're talking about mapping through the equivalent of
`xinput set-button-map` you're correct. Of course, there's not much we
can do to stop that. The code which did the equivalent was removed
from xsetwacom in favor of parse_action transforming simple buttons
into proper actions.

Jason

---
Day xee-nee-svsh duu-'ushtlh-ts'it;
nuu-wee-ya' duu-xan' 'vm-nvshtlh-ts'it.
Huu-chan xuu naa~-gha.

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to