Skip to content
Browse files

rename functions

  • Loading branch information...
1 parent c80e7a0 commit 11ab0a31bc4077e254ea8b82d2b18c122073792a @drcapulet drcapulet committed Jul 29, 2011
Showing with 12 additions and 4 deletions.
  1. +4 −4 server.js
  2. +8 −0 webroot/script.js
View
8 server.js
@@ -57,10 +57,10 @@ everyone.now.sendExtra = function (speedx, speedy) {
nowjs.getGroup(this.now.cntrlr).now.receiveExtra(speedx, speedy)
}
-everyone.now.mouseMove = function (dx, dy) {
- nowjs.getGroup(this.now.cntrlr).now.mouseMove(dx, dy);
+everyone.now.sendMouseMove = function (dx, dy) {
+ nowjs.getGroup(this.now.cntrlr).now.receiveMouseMove(dx, dy);
}
-everyone.now.mouseClick = function () {
- nowjs.getGroup(this.now.cntrlr).now.mouseClick();
+everyone.now.sendMouseClick = function () {
+ nowjs.getGroup(this.now.cntrlr).now.receiveMouseClick();
}
View
8 webroot/script.js
@@ -16,6 +16,14 @@ now.ready(function(){
now.recieveExtra= function (speedx,speedy) {
scroller.handleExtra(speedx,speedy);
}
+
+ now.receiveMouseMove = function (dx, dy) {
+ $("#cntrlr-cursor").hide(); $("#cntrlr-cursor").css({ top: (event.clientY < 0 ? "-=" : "+=") + Math+ "px", left: (event.clientX) + "px" });
+ }
+
+ now.receiveMouseClick = function () {
+
+ }
});

0 comments on commit 11ab0a3

Please sign in to comment.
Something went wrong with that request. Please try again.