chuck.js/app/Game/Client/Control/Input/XyInput.js
2014-03-17 21:45:40 +01:00

20 lines
No EOL
311 B
JavaScript
Executable file

define([
"Lib/Utilities/NotificationCenter"
],
function (Nc) {
function XyInput() {
this.x = null;
this.y = null
}
XyInput.prototype.onXyChange = function(x, y) {
this.x = x;
this.y = y;
Nc.trigger(Nc.ns.client.input.xy.change, x, y);
}
return XyInput;
});