aboutsummaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorOliver McFadden <oliver.mcfadden@nokia.com>2009-07-23 13:19:49 +0300
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-29 15:26:53 +1000
commit1f641d75edba7394201c1c53938215bae696791b (patch)
tree9d44183a4bf6d2173c8dd4677799ab7de4cf9f7d /COPYING
parentDon't register middle mouse button emulation handlers for keyboards. (diff)
downloadxf86-input-evdev-1f641d75edba7394201c1c53938215bae696791b.tar.gz
xf86-input-evdev-1f641d75edba7394201c1c53938215bae696791b.tar.bz2
xf86-input-evdev-1f641d75edba7394201c1c53938215bae696791b.zip
evdev: Only send the events at synchronization time.
Instead of just posting the button/key press/release events to the server as soon as they arrive, add them to an internal queue and post them once we receive an EV_SYN synchronization event. The motion events are always sent first, followed by the queued events. There will be one motion event and possibly many queued button/key events posted every EV_SYN event. Note that the size of the event queue (EVDEV_MAXQUEUE) is arbitrary and you may change it. If we receive more events than the queue can handle, those events are dropped and a warning message printed. Tested on my Lenovo T400 using evdev for all input devices; keyboard, touchpad, and trackpoint. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions