summary refs log tree commit diff
path: root/linux_input_sys
Commit message (Collapse)AuthorAge
* Use simple virtio_input_events where possible.Noah Gold2020-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, all input events in CrosVM were required to be linux input_events, which have a timestamp field that is actually unused by when we send/receive from the guest which are of type virtio_input_event. This CL allows CrosVM to understand both types of input events in a first class manner. It is a follow up on https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1930405. This CL also addresses some bugs with window driven input: 1. attach_event_device was being called before the surface was created, so the devices were never attached. 2. The default touchpad size was not being set to the display window size. Additionally, it removes the unused event "filter" feature on event sources. Breaking change: from this point forward, CrosVM will treat input events sent via a socket (e.g. SocketEventSource) to be virtio_input_events. BUG=None TEST=builds + manual Change-Id: I7fec07c582e5a071a6f116975ba70d6e621bb483 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2034046 Reviewed-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Noah Gold <nkgold@google.com>
* linux_input_sys: Ignore dead code warningsDylan Reid2020-01-08
| | | | | | | | | | | | Flag these three as allowed to be unused to make crosvm warning-free again. Change-Id: Id9bf18728c481484e31860836de6f0a1d1e55c5a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1988282 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Dylan Reid <dgreid@chromium.org> Commit-Queue: Dylan Reid <dgreid@chromium.org>
* Add Linux input_event struct & generator funcs.Noah Gold2020-01-03
BUG=chromium:1023975 TEST=builds. Change-Id: Ibc9e1f58b1188f197d57534f60e1cdc16091f116 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1962752 Reviewed-by: Zach Reizner <zachr@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Noah Gold <nkgold@google.com>