mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
21 lines
No EOL
371 B
JavaScript
Executable file
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;
|
|
|
|
}); |