Skip to content

Commit

Permalink
rename functions
Browse files Browse the repository at this point in the history
  • Loading branch information
drcapulet committed Jul 30, 2011
1 parent c80e7a0 commit 11ab0a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server.js
Expand Up @@ -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();
}
8 changes: 8 additions & 0 deletions webroot/script.js
Expand Up @@ -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 () {

}
});


Expand Down

0 comments on commit 11ab0a3

Please sign in to comment.