Skip to content

Commit 7722f2e

Browse files
jigpuPinglinux
authored andcommitted
Update xsetwacom documentation
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]>
1 parent 77adee9 commit 7722f2e

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

man/xsetwacom.man

+15-3
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,22 @@ The set is defined device's native orientation, regardless of the actual rotatio
103103
applied.
104104
.TP
105105
\fBButton\fR button-number [mapping]
106-
Set a mapping for the specified button-number. Mappings take the form of
106+
.TQ
107+
\fBAbsWheelUp\fR [mapping]
108+
.TQ
109+
\fBAbsWheelDown\fR [mapping]
110+
.TQ
111+
\fBAbsWheel2Up\fR [mapping]
112+
.TQ
113+
\fBAbsWheel2Down\fR [mapping]
114+
.TQ
115+
\fBRelWheelUp\fR [mapping]
116+
.TQ
117+
\fBRelWheelDown\fR [mapping]
118+
Set a mapping for the specified control. Mappings take the form of
107119
either a single numeric button or an 'action' to be performed. If no mapping
108-
is provided, the default mapping is restored. If button-number is mapped
109-
to 0, the Button event is ignored.
120+
is provided, the default mapping is restored. If a control is mapped
121+
to 0, the event is ignored.
110122

111123
Numeric button mappings indicate what X11 button number the given button-number
112124
should correspond to. For example, a mapping of "3" means a press of the given

tools/xsetwacom.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static param_t parameters[] =
332332
},
333333
{
334334
.name = "AbsWheel2Up",
335-
.desc = "X11 event to which absolute wheel up should be mapped. ",
335+
.desc = "X11 event to which 2nd absolute wheel up should be mapped. ",
336336
.prop_name = WACOM_PROP_WHEELBUTTONS,
337337
.prop_format = 8,
338338
.prop_offset = 4,
@@ -342,7 +342,7 @@ static param_t parameters[] =
342342
},
343343
{
344344
.name = "AbsWheel2Down",
345-
.desc = "X11 event to which absolute wheel down should be mapped. ",
345+
.desc = "X11 event to which 2nd absolute wheel down should be mapped. ",
346346
.prop_name = WACOM_PROP_WHEELBUTTONS,
347347
.prop_format = 8,
348348
.prop_offset = 5,

0 commit comments

Comments
 (0)