input-linux: switch over to -object

This patches makes input-linux use -object instead of a new command line
switch.  So, instead of the switch ...

    -input-linux /dev/input/event$nr

... you must create an object this way:

    -object input-linux,id=$name,evdev=/dev/input/event$nr

Bonus is that you can hot-add and hot-remove them via monitor now.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1457681901-30916-1-git-send-email-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann 2016-03-11 08:38:20 +01:00
parent 2538039f2c
commit 0e066b2cc5
3 changed files with 121 additions and 52 deletions

View file

@ -1226,15 +1226,6 @@ STEXI
Set the initial graphical resolution and depth (PPC, SPARC only).
ETEXI
DEF("input-linux", 1, QEMU_OPTION_input_linux,
"-input-linux <evdev>\n"
" Use input device.\n", QEMU_ARCH_ALL)
STEXI
@item -input-linux @var{dev}
@findex -input-linux
Use input device.
ETEXI
DEF("vnc", HAS_ARG, QEMU_OPTION_vnc ,
"-vnc display start a VNC server on display\n", QEMU_ARCH_ALL)
STEXI