crosvm/base
Noah Gold a1e0d46704 gpu_display: guest -> host input event dispatch.
virtio-input devices can receive events from the guest. Primarily this
is used controlling the numlock, capslock, and scroll lock lights. For
KiwiMouse, we'll be using LED 0 (the numlock LED) to allow the guest to
signal whether the mouse should be captured.

We need the capture information to be communicated from the virtio-input
device to SurfaceInput, but some of the plumbing is missing. Currently
we only support host -> guest data, and not the other way around (at
least in gpu_display_win). This CL adds a route for data to flow from
virtio-input to the gpu_display_win Surface via the
the GPU device worker & GpuDisplay::handle_event_device.

Bug: 239991275
Test: ran emulator & verified events were arriving in
on_handle_event_device as expected.

Change-Id: I7ab8e5ec51f7aa655b2cb44fe38483103388b53d
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4719210
Reviewed-by: Vikram Auradkar <auradkar@google.com>
2023-08-30 18:14:49 +00:00
..
base_event_token_derive base_event_token_derive: Move entry point to standard location 2023-07-17 18:47:27 +00:00
src gpu_display: guest -> host input event dispatch. 2023-08-30 18:14:49 +00:00
tests vm_control: move send_recv_event test to base 2023-07-13 19:59:28 +00:00
.build_test_serial Refactoring: Move common/base into base 2022-03-17 00:01:27 +00:00
Cargo.toml Cargo.toml: add version to chrono dependencies 2023-08-11 21:02:25 +00:00