chuck.js/app/Game/Client/Control/Input.js

21 lines
No EOL
371 B
JavaScript
Executable file

define([
"Lib/Utilities/NotificationCenter"
],
function (Nc) {
function Input(playerController) {
this.playerController = playerController;
this.x = null;
this.y = null
}
Input.prototype.onXyChange = function(x, y) {
this.x = x;
this.y = y;
this.playerController.setXY(this.x, this.y);
}
return Input;
});