Changed draggable to pointer array.

This commit is contained in:
photonstorm 2017-07-24 14:09:04 +01:00
parent d068f8decb
commit 812ea7d50b

View file

@ -54,7 +54,7 @@ var SceneInputManager = new Class({
list: [],
pendingInsertion: [],
pendingRemoval: [],
draggable: [],
draggable: { 0: [], 1: [], 2: [], 3: [], 4: [], 5: [], 6: [], 7: [], 8: [], 9: [] },
over: { 0: [], 1: [], 2: [], 3: [], 4: [], 5: [], 6: [], 7: [], 8: [], 9: [] },
down: { 0: [], 1: [], 2: [], 3: [], 4: [], 5: [], 6: [], 7: [], 8: [], 9: [] }
};
@ -84,6 +84,9 @@ var SceneInputManager = new Class({
setHitAreaRectangle: require('./components/SetHitAreaRectangle'),
setHitAreaTriangle: require('./components/SetHitAreaTriangle'),
getInteractiveObject: require('./components/GetInteractiveObject'),
setDraggable: require('./components/SetDraggable'),
setCallback: require('./components/SetCallback'),
setCallbacks: require('./components/SetCallbacks'),
setOnDownCallback: require('./components/SetOnDownCallback'),