mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 08:50:13 +02:00
cursor position bypass desktop module.
This commit is contained in:
parent
66618b9e62
commit
663270b0f5
6 changed files with 11 additions and 27 deletions
|
@ -86,7 +86,6 @@ func (manager *WebRTCManagerCtx) Start() {
|
|||
Msgf("webrtc starting")
|
||||
|
||||
manager.curImage.Start()
|
||||
manager.curPosition.Start()
|
||||
}
|
||||
|
||||
func (manager *WebRTCManagerCtx) Shutdown() error {
|
||||
|
@ -314,7 +313,7 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
|
|||
manager.curPosition.AddListener(&cursorPosition)
|
||||
|
||||
// send initial cursor image
|
||||
entry, err := manager.curImage.GetCurrent()
|
||||
entry, err := manager.curImage.Get()
|
||||
if err == nil {
|
||||
cursorImage(entry)
|
||||
} else {
|
||||
|
@ -322,7 +321,7 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
|
|||
}
|
||||
|
||||
// send initial cursor position
|
||||
x, y := manager.curPosition.GetCurrent()
|
||||
x, y := manager.curPosition.Get()
|
||||
cursorPosition(x, y)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue