mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
overlay onControlChange use control events.
This commit is contained in:
parent
6f18bde058
commit
4b2c03b88d
@ -547,12 +547,11 @@
|
||||
|
||||
if (isControling && this.reqMouseDown) {
|
||||
this.updateKeyboardModifiers(this.reqMouseDown)
|
||||
this.sendMousePos(this.reqMouseDown)
|
||||
this.webrtc.send('mousedown', { key: this.reqMouseDown.button + 1 })
|
||||
this.onMouseDown(this.reqMouseDown)
|
||||
}
|
||||
|
||||
if (isControling && this.reqMouseUp) {
|
||||
this.webrtc.send('mouseup', { key: this.reqMouseUp.button + 1 })
|
||||
this.onMouseUp(this.reqMouseUp)
|
||||
}
|
||||
|
||||
this.canvasRequestRedraw()
|
||||
|
Loading…
Reference in New Issue
Block a user