Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Povilas Kanapickas
xserver
Commits
5e390090
Commit
5e390090
authored
Dec 18, 2020
by
Povilas Kanapickas
Browse files
xfree86: Use different scroll increment than libinput in inputtest drv
Signed-off-by:
Povilas Kanapickas
<
povilas@radix.lt
>
parent
58465a3d
Pipeline
#245881
passed with stages
in 3 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
hw/xfree86/drivers/inputtest/xf86-input-inputtest.c
View file @
5e390090
...
...
@@ -331,8 +331,8 @@ init_pointer(InputInfoPtr pInfo)
xf86InitValuatorAxisStruct
(
dev
,
1
,
XIGetKnownProperty
(
AXIS_LABEL_PROP_REL_Y
),
min
,
max
,
res
*
1000
,
0
,
res
*
1000
,
Relative
);
SetScrollValuator
(
dev
,
2
,
SCROLL_TYPE_HORIZONTAL
,
1
5
,
0
);
SetScrollValuator
(
dev
,
3
,
SCROLL_TYPE_VERTICAL
,
1
5
,
0
);
SetScrollValuator
(
dev
,
2
,
SCROLL_TYPE_HORIZONTAL
,
1
20
,
0
);
SetScrollValuator
(
dev
,
3
,
SCROLL_TYPE_VERTICAL
,
1
20
,
0
);
if
(
has_pressure
)
{
xf86InitValuatorAxisStruct
(
dev
,
4
,
...
...
@@ -385,8 +385,8 @@ init_pointer_absolute(InputInfoPtr pInfo)
xf86InitValuatorAxisStruct
(
dev
,
1
,
XIGetKnownProperty
(
AXIS_LABEL_PROP_ABS_Y
),
min
,
max
,
res
*
1000
,
0
,
res
*
1000
,
Absolute
);
SetScrollValuator
(
dev
,
2
,
SCROLL_TYPE_HORIZONTAL
,
1
5
,
0
);
SetScrollValuator
(
dev
,
3
,
SCROLL_TYPE_VERTICAL
,
1
5
,
0
);
SetScrollValuator
(
dev
,
2
,
SCROLL_TYPE_HORIZONTAL
,
1
20
,
0
);
SetScrollValuator
(
dev
,
3
,
SCROLL_TYPE_VERTICAL
,
1
20
,
0
);
if
(
has_pressure
)
{
xf86InitValuatorAxisStruct
(
dev
,
4
,
...
...
@@ -462,8 +462,8 @@ init_touch(InputInfoPtr pInfo)
XIGetKnownProperty
(
AXIS_LABEL_PROP_ABS_MT_POSITION_Y
),
min
,
max
,
res
*
1000
,
0
,
res
*
1000
,
Absolute
);
SetScrollValuator
(
dev
,
2
,
SCROLL_TYPE_HORIZONTAL
,
1
5
,
0
);
SetScrollValuator
(
dev
,
3
,
SCROLL_TYPE_VERTICAL
,
1
5
,
0
);
SetScrollValuator
(
dev
,
2
,
SCROLL_TYPE_HORIZONTAL
,
1
20
,
0
);
SetScrollValuator
(
dev
,
3
,
SCROLL_TYPE_VERTICAL
,
1
20
,
0
);
xf86InitValuatorAxisStruct
(
dev
,
4
,
XIGetKnownProperty
(
AXIS_LABEL_PROP_ABS_MT_PRESSURE
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment