Skip to content

Commit 296efe0

Browse files
committed
Removed input callbacks as all handled via events now.
1 parent bca6bd6 commit 296efe0

11 files changed

Lines changed: 1 addition & 150 deletions

src/input/InteractiveObject.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
var NOOP = require('../utils/NOOP');
2-
31
// Phaser.Input.InteractiveObject
42

53
var InteractiveObject = function (gameObject, hitArea, hitAreaCallback)
@@ -31,35 +29,7 @@ var InteractiveObject = function (gameObject, hitArea, hitAreaCallback)
3129
dragStartY: 0,
3230

3331
dragX: 0,
34-
dragY: 0,
35-
36-
// Callbacks
37-
38-
callbackContext: gameObject,
39-
40-
// gameObject, pointer, x, y
41-
onUp: NOOP,
42-
43-
// gameObject, pointer, x, y
44-
onDown: NOOP,
45-
46-
// gameObject, pointer, x, y
47-
onOver: NOOP,
48-
49-
// gameObject, pointer
50-
onOut: NOOP,
51-
52-
// gameObject, pointer, x, y
53-
onMove: NOOP,
54-
55-
// gameObject, pointer, x, y
56-
onDragStart: NOOP,
57-
58-
// gameObject, pointer, x, y
59-
onDrag: NOOP,
60-
61-
// gameObject, pointer, x, y
62-
onDragEnd: NOOP
32+
dragY: 0
6333

6434
};
6535
};

src/input/local/inc/SetCallback.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/input/local/inc/SetCallbacks.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/input/local/inc/SetOnDownCallback.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/input/local/inc/SetOnDragCallback.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/input/local/inc/SetOnDragEndCallback.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/input/local/inc/SetOnDragStartCallback.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/input/local/inc/SetOnMoveCallback.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/input/local/inc/SetOnOutCallback.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/input/local/inc/SetOnOverCallback.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)