chuck.js/app/Game/Client/Control/Input/XyInput.js
2013-12-12 18:42:27 +01:00

22 lines
No EOL
325 B
JavaScript

define([
"Game/Core/NotificationCenter"
],
function (NotificationCenter) {
function XyInput() {
this.x = null;
this.y = null
}
XyInput.prototype.onXyChange = function(x, y) {
this.x = x;
this.y = y;
NotificationCenter.trigger('onXyChange', x, y);
}
return XyInput;
});