mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
webrtc SetCursorPosition.
This commit is contained in:
parent
81531d74c1
commit
f4a4e0152e
@ -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…
Reference in New Issue
Block a user