mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
20 lines
No EOL
333 B
JavaScript
Executable file
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;
|
|
|
|
}); |