broadcast cursor position via WebSockets.

This commit is contained in:
Miroslav Šedivý
2021-02-11 18:36:27 +01:00
parent e8286dec96
commit f22922191a
5 changed files with 61 additions and 1 deletions

View File

@ -9,8 +9,16 @@ import (
"demodesk/neko/internal/desktop/xorg"
)
var mousePosX int
var mousePosY int
func (manager *DesktopManagerCtx) Move(x, y int) {
xorg.Move(x, y)
mousePosX, mousePosY = x, y
}
func (manager *DesktopManagerCtx) GetMousePositon() (x, y int) {
return mousePosX, mousePosY
}
func (manager *DesktopManagerCtx) Scroll(x, y int) {