mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
broadcast cursor position via WebSockets.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user