Extracted tunnel, mouse, and keyboard handling from GuacamoleClient

This commit is contained in:
Michael Jumper
2011-03-02 16:01:03 -08:00
parent 4d1717146f
commit 53755b8070
3 changed files with 327 additions and 412 deletions

View File

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