chuck.js/app/Game/Client/Control/Input/XyInput.js
2013-12-28 02:39:32 +01:00

20 lines
No EOL
333 B
JavaScript

define([
"Lib/Utilities/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('input/onXyChange', x, y);
}
return XyInput;
});