mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Compare commits
3 Commits
master
...
xf86-input
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
51575b60b1 | ||
|
|
f285567d37 | ||
|
|
af1d085877 |
@@ -23,7 +23,7 @@
|
|||||||
# Initialize Autoconf
|
# Initialize Autoconf
|
||||||
AC_PREREQ([2.60])
|
AC_PREREQ([2.60])
|
||||||
AC_INIT([xf86-input-evdev],
|
AC_INIT([xf86-input-evdev],
|
||||||
[2.8.1],
|
[2.8.2],
|
||||||
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
|
||||||
[xf86-input-evdev])
|
[xf86-input-evdev])
|
||||||
AC_CONFIG_SRCDIR([Makefile.am])
|
AC_CONFIG_SRCDIR([Makefile.am])
|
||||||
|
|||||||
@@ -1157,7 +1157,7 @@ EvdevKbdCtrl(DeviceIntPtr device, KeybdCtrl *ctrl)
|
|||||||
};
|
};
|
||||||
|
|
||||||
InputInfoPtr pInfo;
|
InputInfoPtr pInfo;
|
||||||
struct input_event ev[ArrayLength(bits)];
|
struct input_event ev[ArrayLength(bits) + 1];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
memset(ev, 0, sizeof(ev));
|
memset(ev, 0, sizeof(ev));
|
||||||
@@ -1169,6 +1169,10 @@ EvdevKbdCtrl(DeviceIntPtr device, KeybdCtrl *ctrl)
|
|||||||
ev[i].value = (ctrl->leds & bits[i].xbit) > 0;
|
ev[i].value = (ctrl->leds & bits[i].xbit) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ev[i].type = EV_SYN;
|
||||||
|
ev[i].code = SYN_REPORT;
|
||||||
|
ev[i].value = 0;
|
||||||
|
|
||||||
write(pInfo->fd, ev, sizeof ev);
|
write(pInfo->fd, ev, sizeof ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1541,7 +1545,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device, int want_scroll_axes)
|
|||||||
NO_AXIS_LIMITS, NO_AXIS_LIMITS,
|
NO_AXIS_LIMITS, NO_AXIS_LIMITS,
|
||||||
0, 0, 0, Relative);
|
0, 0, 0, Relative);
|
||||||
SetScrollValuator(device, pEvdev->rel_axis_map[idx],
|
SetScrollValuator(device, pEvdev->rel_axis_map[idx],
|
||||||
SCROLL_TYPE_HORIZONTAL, 1.0,
|
SCROLL_TYPE_VERTICAL, -1.0,
|
||||||
SCROLL_FLAG_NONE);
|
SCROLL_FLAG_NONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user