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) {
|
if (isControling && this.reqMouseDown) {
|
||||||
this.updateKeyboardModifiers(this.reqMouseDown)
|
this.updateKeyboardModifiers(this.reqMouseDown)
|
||||||
this.sendMousePos(this.reqMouseDown)
|
this.onMouseDown(this.reqMouseDown)
|
||||||
this.webrtc.send('mousedown', { key: this.reqMouseDown.button + 1 })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isControling && this.reqMouseUp) {
|
if (isControling && this.reqMouseUp) {
|
||||||
this.webrtc.send('mouseup', { key: this.reqMouseUp.button + 1 })
|
this.onMouseUp(this.reqMouseUp)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.canvasRequestRedraw()
|
this.canvasRequestRedraw()
|
||||||
|
Loading…
Reference in New Issue
Block a user