Repository: incubator-guacamole-client Updated Branches: refs/heads/master 25b9425ed -> 1a621886c
GUACAMOLE-231: Update software cursor location when a "mouse" instruction is received. Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/96140d41 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/96140d41 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/96140d41 Branch: refs/heads/master Commit: 96140d41679c562c4ed4df7209ebd8c0fa2600b3 Parents: 6bcb983 Author: Michael Jumper <[email protected]> Authored: Sat Mar 11 14:41:06 2017 -0800 Committer: Michael Jumper <[email protected]> Committed: Sat Mar 11 14:41:06 2017 -0800 ---------------------------------------------------------------------- guacamole-common-js/src/main/webapp/modules/Client.js | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/96140d41/guacamole-common-js/src/main/webapp/modules/Client.js ---------------------------------------------------------------------- diff --git a/guacamole-common-js/src/main/webapp/modules/Client.js b/guacamole-common-js/src/main/webapp/modules/Client.js index cb9f014..2bf8144 100644 --- a/guacamole-common-js/src/main/webapp/modules/Client.js +++ b/guacamole-common-js/src/main/webapp/modules/Client.js @@ -1037,6 +1037,17 @@ Guacamole.Client = function(tunnel) { }, + "mouse" : function handleMouse(parameters) { + + var x = parseInt(parameters[0]); + var y = parseInt(parameters[1]); + + // Display and move software cursor to received coordinates + display.showCursor(true); + display.moveCursor(x, y); + + }, + "move": function(parameters) { var layer_index = parseInt(parameters[0]);
