mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed remote joint
This commit is contained in:
parent
0665348ae2
commit
b159bbb1cc
12 changed files with 143 additions and 29 deletions
|
|
@ -15,7 +15,7 @@ function (Parent, KeyboardInput, MouseInput, NotificationCenter) {
|
|||
this.xyInput = new MouseInput(this);
|
||||
|
||||
NotificationCenter.on("input/onXyChange", this.setXY, this);
|
||||
NotificationCenter.on("input/onHandAction", this.handAction, this);
|
||||
NotificationCenter.on("input/onHandActionRequest", this.handActionRequest, this);
|
||||
|
||||
var keys = {
|
||||
w:87,
|
||||
|
|
@ -75,12 +75,10 @@ function (Parent, KeyboardInput, MouseInput, NotificationCenter) {
|
|||
NotificationCenter.trigger('sendGameCommand', 'lookAt', options);
|
||||
};
|
||||
|
||||
PlayerController.prototype.handAction = function(x, y) {
|
||||
PlayerController.prototype.handActionRequest = function(x, y) {
|
||||
var options = {x:x, y:y};
|
||||
Parent.prototype.handAction.call(this, options);
|
||||
NotificationCenter.trigger("sendGameCommand", "handAction", options);
|
||||
};
|
||||
|
||||
NotificationCenter.trigger("sendGameCommand", "handActionRequest", options);
|
||||
};
|
||||
|
||||
return PlayerController;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue