Move virtual device infra to libinput

These pieces should be part of libinput, because they are needed to
create uinput devices efficiently.

Bug: 335496563
Test: build only
Flag: EXEMPT refactor
Change-Id: I506a592b83f549e6db9a03bc9bb86c047f31f872
2 files changed