Skip to content

Commit

Permalink
Update xsetwacom documentation
Browse files Browse the repository at this point in the history
Updates documentation for some of the button-like parameters. The man
page for xsetwacom now lists all button-like parameters and the help
page now describes the 2nd absolute wheel properly.

Signed-off-by: Jason Gerecke <[email protected]>
  • Loading branch information
jigpu committed Aug 8, 2024
1 parent 7ea8e69 commit 2b71d66
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
18 changes: 15 additions & 3 deletions man/xsetwacom.man
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,22 @@ The set is defined device's native orientation, regardless of the actual rotatio
applied.
.TP
\fBButton\fR button-number [mapping]
Set a mapping for the specified button-number. Mappings take the form of
.TQ
\fBAbsWheelUp\fR [mapping]
.TQ
\fBAbsWheelDown\fR [mapping]
.TQ
\fBAbsWheel2Up\fR [mapping]
.TQ
\fBAbsWheel2Down\fR [mapping]
.TQ
\fBRelWheelUp\fR [mapping]
.TQ
\fBRelWheelDown\fR [mapping]
Set a mapping for the specified control. Mappings take the form of
either a single numeric button or an 'action' to be performed. If no mapping
is provided, the default mapping is restored. If button-number is mapped
to 0, the Button event is ignored.
is provided, the default mapping is restored. If a control is mapped
to 0, the event is ignored.

Numeric button mappings indicate what X11 button number the given button-number
should correspond to. For example, a mapping of "3" means a press of the given
Expand Down
4 changes: 2 additions & 2 deletions tools/xsetwacom.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static param_t parameters[] =
},
{
.name = "AbsWheel2Up",
.desc = "X11 event to which absolute wheel up should be mapped. ",
.desc = "X11 event to which 2nd absolute wheel up should be mapped. ",
.prop_name = WACOM_PROP_WHEELBUTTONS,
.prop_format = 8,
.prop_offset = 4,
Expand All @@ -342,7 +342,7 @@ static param_t parameters[] =
},
{
.name = "AbsWheel2Down",
.desc = "X11 event to which absolute wheel down should be mapped. ",
.desc = "X11 event to which 2nd absolute wheel down should be mapped. ",
.prop_name = WACOM_PROP_WHEELBUTTONS,
.prop_format = 8,
.prop_offset = 5,
Expand Down

0 comments on commit 2b71d66

Please sign in to comment.