We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb8b428 commit 9bc4483Copy full SHA for 9bc4483
1 file changed
v3/src/input/local/SceneInputManager.js
@@ -117,6 +117,26 @@ var SceneInputManager = new Class({
117
sortHandlerGO: require('./components/SortHandlerGO'),
118
sortHandlerIO: require('./components/SortHandlerIO'),
119
120
+ // The x/y coordinates of the ActivePointer based on the first camera in the camera list.
121
+ // This is only safe to use if your game has just 1 non-transformed camera and doesn't use multi-touch.
122
+ x: {
123
+
124
+ get: function ()
125
+ {
126
+ return this.manager.activePointer.x;
127
+ }
128
129
+ },
130
131
+ y: {
132
133
134
135
+ return this.manager.activePointer.y;
136
137
138
139
140
// Scene that owns this is shutting down
141
shutdown: function ()
142
{
0 commit comments