mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Compare commits
2 Commits
xf86-input
...
xf86-input
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a3beab613 | ||
|
|
d7e61a7074 |
@@ -23,7 +23,7 @@
|
||||
# Initialize Autoconf
|
||||
AC_PREREQ([2.60])
|
||||
AC_INIT([xf86-input-evdev],
|
||||
[2.10.0],
|
||||
[2.10.1],
|
||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||
[xf86-input-evdev])
|
||||
AC_CONFIG_SRCDIR([Makefile.am])
|
||||
|
||||
11
src/evdev.c
11
src/evdev.c
@@ -1377,7 +1377,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device, int num_scroll_axes)
|
||||
}
|
||||
atoms = malloc((pEvdev->num_vals + num_mt_axes) * sizeof(Atom));
|
||||
|
||||
i = 0;
|
||||
i = 2;
|
||||
for (axis = ABS_X; i < MAX_VALUATORS && axis <= ABS_MAX; axis++) {
|
||||
int j;
|
||||
pEvdev->abs_axis_map[axis] = -1;
|
||||
@@ -1385,9 +1385,14 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device, int num_scroll_axes)
|
||||
is_blacklisted_axis(axis))
|
||||
continue;
|
||||
|
||||
mapping = i;
|
||||
if (axis == ABS_X)
|
||||
mapping = 0;
|
||||
else if (axis == ABS_Y)
|
||||
mapping = 1;
|
||||
else
|
||||
mapping = i;
|
||||
|
||||
for (j = 0; j < ArrayLength(mt_axis_mappings); j++)
|
||||
for (j = 0; !pEvdev->fake_mt && j < ArrayLength(mt_axis_mappings); j++)
|
||||
{
|
||||
if (mt_axis_mappings[j].code == axis)
|
||||
mt_axis_mappings[j].mapping = mapping;
|
||||
|
||||
Reference in New Issue
Block a user