Skip to content

How do I send a mouse event from a host to a guest? #31

Closed

Description

@redMurzik

Hello dear programmers!
My host Kubuntu20.04 KVM Guest Windows8.1
I can send a keyboard press from the host to the guest for example with this command:

virsh send-key GuestVM --codeset linux --holdtime 100 KEY_SPACE
virsh send-key GuestVM --codeset usb --holdtime 100 0x2c
virsh send-key GuestVM --codeset win32 --holdtime 100 0x2c

How do I send a mouse click, scroll and move?

I don’t understand why it doesn’t work? virsh send-key GuestVM --codeset win32 --holdtime 100 0x01

Can you implement this idea? Send mouse events to the guest via virsh like "virsh send-key".
maybe give a name "send-mouse" "send-mouse-key" "send-mouse-move" "send-mouse-scroll"

Activity

  1. repo-lockdown commented on Mar 4, 2021

    @repo-lockdown

    Thank you for your interest in the libvirt project.

    Since this repository is a read-only mirror of the project's master repostory hosted on GitLab, issues opened here are not processed.

    We kindly request that new issues are reported to

    https://gitlab.com/libvirt/libvirt/-/issues/new

    Thank you for your time and understanding.

  2. locked and limited conversation to collaborators on Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions