2
0
mirror of https://github.com/pikvm/pikvm synced 2024-11-01 09:20:17 +00:00
pikvm/pages/mouse.md

44 lines
2.0 KiB
Markdown
Raw Normal View History

2020-11-03 20:23:23 +00:00
# Mouse modes
2020-11-03 21:38:04 +00:00
There are two modes of pointer device: absolute and relative.
2020-11-03 20:23:23 +00:00
2020-11-03 21:38:23 +00:00
In absolute mode, the input device transmits the exact coordinates (X,Y) where the cursor should be moved. This is how touchscreens or drawing tablets work.
2020-11-03 20:23:23 +00:00
2020-11-03 21:38:04 +00:00
In relative mode, only the relative offset (dX,dY) to the current position is transmitted, which is unknown to the input device itself. This is a regular mouse.
2020-11-03 20:23:23 +00:00
By default, Pi-KVM uses absolute positioning mode as the most convenient for the user and software.
However, this is not always supported by the BIOS/UEFI.
For such cases, support is provided for the relative mode of operation, which can be enabled in the config.
When using relative mode, the browser will exclusively capture your mouse when you click on the stream window in Pi-KVM once.
When you press `Esc`, the browser releases the mouse.
:exclamation: Currently, relative mouse mode is not supported by [Pi-KVM VNC server](vnc.md).
The reason is that none of the recommended clients support the [QEMU Pointer Motion Change](https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#qemu-pointer-motion-change-pseudo-encoding) extension.
We expect to implement this in [TigerVNC](https://github.com/TigerVNC/tigervnc/issues/619).
2020-11-03 21:38:04 +00:00
:exclamation: This mode is also not supported by mobile browsers.
2020-11-03 20:23:23 +00:00
# Enabling relative mouse on v2 platform (OTG HID)
* Switch filesystem to RW-mode using command `rw`.
* Edit `/etc/kvmd/override.yaml` and add these lines:
```yaml
kvmd:
hid:
mouse:
absolute: false
```
2020-11-03 20:25:21 +00:00
* Perform `reboot`. After that reboot your PC.
2020-11-03 20:24:56 +00:00
* If the mouse is still not detected by the BIOS/UEFI, try disabling horizontal scrolling to ensure maximum compatibility:
```yaml
kvmd:
hid:
mouse:
absolute: false
horizontal_wheel: false
```
* Don't forget to perform `reboot`.
2020-11-03 20:23:23 +00:00
# Enabling relative mouse on v0 platform (serial HID)
2020-11-03 21:38:04 +00:00
:exclamation: This is not currently supported but will be added in a future release. The reason is that we are working on improving the HID protocol.