主权项 |
1. A method, comprising:
providing, by a hypervisor executed by a processing device on a host machine, an emulation of a touch screen device of a client device separate from the host machine, the emulation provided to a virtual machine (VM) managed by the hypervisor, wherein the provided emulation utilized by the VM for emulation of the touch screen device in a session window of the VM displayed to a user of the VM at the client device, and wherein a local on-screen presentation of the touch screen device provided by an operating system (OS) of the client device is hidden in response to the emulation of the touch screen device in the session window of the VM, and wherein functionality provided by the local on-screen presentation of the touch screen device is replaced by the emulation of the touch screen device for use by the user of the client device; receiving, by the hypervisor, touch gesture information related to a touch gesture received from the user in the session window of the VM; and sending, by the hypervisor, an interrupt to the VM that notifies the VM of detected touch screen activity in the session window of the VM on the touch screen device, wherein in response to the interrupt, the VM receives the touch gesture information to utilize in determining screen coordinates of the touch gestures within the session window of the VM; wherein the touch gesture information comprises an offset of the touch gesture within the session window of the VM, the offset calculated by a VM client operating on the client device and assisting in display of the session window of the VM at the client device. |