diff options
author | Devaev Maxim <[email protected]> | 2020-08-18 10:45:15 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-08-18 10:45:15 +0300 |
commit | 28cc3fe99a3e90213f1f01286b5ec55f4f06224c (patch) | |
tree | be3751fb65bc53f2bcf9158e155eebe27208abe6 /web | |
parent | 6840c514dc4b1996719787878bbf9d60b402f760 (diff) |
mouse buttons 4 and 5
Diffstat (limited to 'web')
-rw-r--r-- | web/kvm/index.html | 7 | ||||
-rw-r--r-- | web/kvm/window-stream.pug | 6 | ||||
-rw-r--r-- | web/share/js/kvm/mouse.js | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index 1872c9aa..6d9b636d 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -420,6 +420,13 @@ <div class="modifier wide-2 right small" data-code="right"><span><b>•</b><br>Hold →</span></div> <div class="key wide-4 right small" data-code="right"><span>Mouse<br>Right</span></div> </div> + <div class="keypad-row" style="display:none"> + <div class="key wide-4 left small" data-code="up"><span>Mouse<br>Up/Back</span></div> + <div class="modifier wide-2 left small" data-code="up"><span><b>•</b><br>← Hold</span></div> + <div class="empty-key" style="width:10px"></div> + <div class="modifier wide-2 right small" data-code="down"><span><b>•</b><br>Hold →</span></div> + <div class="key wide-4 right small" data-code="down"><span>Mouse<br>Down/Fw</span></div> + </div> </div> </div> </div> diff --git a/web/kvm/window-stream.pug b/web/kvm/window-stream.pug index 232a3f72..f3493c39 100644 --- a/web/kvm/window-stream.pug +++ b/web/kvm/window-stream.pug @@ -13,3 +13,9 @@ div(class="empty-key" style="width:10px") div(data-code="right" class="modifier wide-2 right small") #[span #[b •]#[br]Hold →] div(data-code="right" class="key wide-4 right small") #[span Mouse#[br]Right] + div(class="keypad-row" style="display:none") + div(data-code="up" class="key wide-4 left small") #[span Mouse#[br]Up/Back] + div(data-code="up" class="modifier wide-2 left small") #[span #[b •]#[br]← Hold] + div(class="empty-key" style="width:10px") + div(data-code="down" class="modifier wide-2 right small") #[span #[b •]#[br]Hold →] + div(data-code="down" class="key wide-4 right small") #[span Mouse#[br]Down/Fw] diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index 6fb69781..33b9f56f 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -120,6 +120,8 @@ export function Mouse(record_callback) { case 0: __keypad.emit("left", state); break; case 2: __keypad.emit("right", state); break; case 1: __keypad.emit("middle", state); break; + case 3: __keypad.emit("up", state); break; + case 4: __keypad.emit("down", state); break; } }; |