diff --git a/v3/src/input/InteractiveObject.js b/v3/src/input/InteractiveObject.js index e035a334d..941070c97 100644 --- a/v3/src/input/InteractiveObject.js +++ b/v3/src/input/InteractiveObject.js @@ -1,3 +1,5 @@ +var NOOP = require('../utils/NOOP'); + // Phaser.Input.InteractiveObject var InteractiveObject = function (gameObject, hitArea, hitAreaCallback) @@ -5,6 +7,8 @@ var InteractiveObject = function (gameObject, hitArea, hitAreaCallback) return { gameObject: gameObject, + enabled: true, + hitArea: hitArea, hitAreaCallback: hitAreaCallback, @@ -13,8 +17,14 @@ var InteractiveObject = function (gameObject, hitArea, hitAreaCallback) isOver: false, isDown: false, + isDragged: false, - isDragged: false + callbackContext: gameObject, + + onDown: NOOP, + onUp: NOOP, + onOver: NOOP, + onOut: NOOP }; };