chuck.js/app/Game/Client/Control/Input/XyInput.js
2014-01-12 16:59:16 +01:00

20 lines
No EOL
333 B
JavaScript
Executable file

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;
});