mouse buttons 4 and 5

This commit is contained in:
Devaev Maxim
2020-08-18 10:45:15 +03:00
parent 6840c514dc
commit 28cc3fe99a
11 changed files with 54 additions and 15 deletions

View File

@@ -420,6 +420,13 @@
<div class="modifier wide-2 right small" data-code="right"><span><b>&bull;</b><br>Hold &rarr;</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>&bull;</b><br>&larr; Hold</span></div>
<div class="empty-key" style="width:10px"></div>
<div class="modifier wide-2 right small" data-code="down"><span><b>&bull;</b><br>Hold &rarr;</span></div>
<div class="key wide-4 right small" data-code="down"><span>Mouse<br>Down/Fw</span></div>
</div>
</div>
</div>
</div>

View File

@@ -13,3 +13,9 @@
div(class="empty-key" style="width:10px")
div(data-code="right" class="modifier wide-2 right small") #[span #[b &bull;]#[br]Hold &rarr;]
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 &bull;]#[br]&larr; Hold]
div(class="empty-key" style="width:10px")
div(data-code="down" class="modifier wide-2 right small") #[span #[b &bull;]#[br]Hold &rarr;]
div(data-code="down" class="key wide-4 right small") #[span Mouse#[br]Down/Fw]

View File

@@ -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;
}
};