Skip to content

Commit 44569fe

Browse files
committed
Added useHandCursor boolean
1 parent 140e743 commit 44569fe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/input/CreateInteractiveObject.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @property {boolean} enabled - Is this Interactive Object currently enabled for input events?
2323
* @property {boolean} draggable - Is this Interactive Object draggable? Enable with `InputPlugin.setDraggable`.
2424
* @property {boolean} dropZone - Is this Interactive Object a drag-targets drop zone? Set when the object is created.
25+
* @property {boolean} useHandCursor - Should this Interactive Object change the cursor to a pointer (via css) when over? (desktop only)
2526
* @property {?Phaser.GameObjects.GameObject} target - An optional drop target for a draggable Interactive Object.
2627
* @property {Phaser.Cameras.Scene2D.Camera} camera - The most recent Camera to be tested against this Interactive Object.
2728
* @property {any} hitArea - The hit area for this Interactive Object. Typically a geometry shape, like a Rectangle or Circle.
@@ -60,6 +61,7 @@ var CreateInteractiveObject = function (gameObject, hitArea, hitAreaCallback)
6061
enabled: true,
6162
draggable: false,
6263
dropZone: false,
64+
useHandCursor: false,
6365

6466
target: null,
6567

0 commit comments

Comments
 (0)