mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-25 15:07:25 +02:00
webrtc SetCursorPosition.
This commit is contained in:
parent
81531d74c1
commit
f4a4e0152e
3 changed files with 7 additions and 0 deletions
|
@ -446,3 +446,7 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
|
|||
|
||||
return offer, nil
|
||||
}
|
||||
|
||||
func (manager *WebRTCManagerCtx) SetCursorPosition(x, y int) {
|
||||
manager.curPosition.Set(x, y)
|
||||
}
|
||||
|
|
|
@ -64,7 +64,9 @@ func (h *MessageHandlerCtx) controlMove(session types.Session, payload *message.
|
|||
return err
|
||||
}
|
||||
|
||||
// handle active cursor movement
|
||||
h.desktop.Move(payload.X, payload.Y)
|
||||
h.webrtc.SetCursorPosition(payload.X, payload.Y)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -41,4 +41,5 @@ type WebRTCManager interface {
|
|||
ICEServers() []ICEServer
|
||||
|
||||
CreatePeer(session Session, videoID string) (*webrtc.SessionDescription, error)
|
||||
SetCursorPosition(x, y int)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue