Skip to content

Commit 4969bf3

Browse files
committed
The local input manager has a reference to the active pointer.
1 parent f9cda63 commit 4969bf3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

v3/src/input/local/SceneInputManager.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@ var SceneInputManager = new Class({
121121
sortHandlerGO: require('./inc/SortHandlerGO'),
122122
sortHandlerIO: require('./inc/SortHandlerIO'),
123123

124+
activePointer: {
125+
126+
get: function ()
127+
{
128+
return this.manager.activePointer;
129+
}
130+
131+
},
132+
124133
// The x/y coordinates of the ActivePointer based on the first camera in the camera list.
125134
// This is only safe to use if your game has just 1 non-transformed camera and doesn't use multi-touch.
126135
x: {

0 commit comments

Comments
 (0)