mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Extracted tunnel, mouse, and keyboard handling from GuacamoleClient
This commit is contained in:
@@ -150,43 +150,6 @@ function GuacamoleMouse(element) {
|
||||
handleScroll(e);
|
||||
}
|
||||
|
||||
function MouseEvent(x, y, left, middle, right, up, down) {
|
||||
|
||||
this.getX = function() {
|
||||
return x;
|
||||
};
|
||||
|
||||
this.getY = function() {
|
||||
return y;
|
||||
};
|
||||
|
||||
this.getLeft = function() {
|
||||
return left;
|
||||
};
|
||||
|
||||
this.getMiddle = function() {
|
||||
return middle;
|
||||
};
|
||||
|
||||
this.getRight = function() {
|
||||
return right;
|
||||
};
|
||||
|
||||
this.getUp = function() {
|
||||
return up;
|
||||
};
|
||||
|
||||
this.getDown = function() {
|
||||
return down;
|
||||
};
|
||||
|
||||
this.toString = function() {
|
||||
return (mouseIndex++) + "," + x + "," + y + "," + left + "," + middle + "," + right + "," + up + "," + down;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
var buttonPressedHandler = null;
|
||||
var buttonReleasedHandler = null;
|
||||
var movementHandler = null;
|
||||
@@ -203,3 +166,35 @@ function GuacamoleMouse(element) {
|
||||
this.getRightButton = function() {return mouseRightButton;};
|
||||
|
||||
}
|
||||
|
||||
function MouseEvent(x, y, left, middle, right, up, down) {
|
||||
|
||||
this.getX = function() {
|
||||
return x;
|
||||
};
|
||||
|
||||
this.getY = function() {
|
||||
return y;
|
||||
};
|
||||
|
||||
this.getLeft = function() {
|
||||
return left;
|
||||
};
|
||||
|
||||
this.getMiddle = function() {
|
||||
return middle;
|
||||
};
|
||||
|
||||
this.getRight = function() {
|
||||
return right;
|
||||
};
|
||||
|
||||
this.getUp = function() {
|
||||
return up;
|
||||
};
|
||||
|
||||
this.getDown = function() {
|
||||
return down;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user