guacamole-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmuehl...@apache.org
Subject [1/3] incubator-guacamole-client git commit: GUACAMOLE-231: Update software cursor location when a "mouse" instruction is received.
Date Tue, 14 Mar 2017 05:10:21 GMT
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 <mjumper@apache.org>
Authored: Sat Mar 11 14:41:06 2017 -0800
Committer: Michael Jumper <mjumper@apache.org>
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]);


Mime
View raw message