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