On Wed, Mar 30, 2011 at 11:51:22PM -0700, Jason Gerecke wrote:
> 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)

Where is this 5 coming from? shouldn't this be the equivalent of "button
+5" in the driver?

Cheers,
  Peter

> 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.

------------------------------------------------------------------------------
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