fix general purpose test script

This commit is contained in:
Jörg Breitbart
2019-07-24 12:51:24 +02:00
parent 6391742951
commit fb38bd13cd
2 changed files with 54 additions and 30 deletions
+4 -3
View File
@@ -138,11 +138,12 @@ function evalButtonCode(code: number): any {
}
let actionS = 'press';
let buttonS = reverseButtons[button];
if (move) {
actionS = 'move';
} else if (button === 3) {
if (button === 3) {
buttonS = '<none>';
actionS = 'release';
}
if (move) {
actionS = 'move';
} else if (4 <= button && button <= 7) {
buttonS = 'wheel';
actionS = button === 4 ? 'up' : button === 5 ? 'down' : button === 6 ? 'left' : 'right';