File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -675,6 +675,8 @@ Phaser.Utils.Debug.prototype = {
675675 var pointers = input . pointers ;
676676 var mousePointer = input . mousePointer ;
677677 var modes = Phaser . PointerModes ;
678+ var active = 0 ;
679+ var free = 0 ;
678680
679681 this . line ( 'Pointers: (Max: ' + input . maxPointers + ')' ) ;
680682 this . line ( ' ' + ( mousePointer . isDown ? 'x' : 'o' ) + ' ' + modes [ mousePointer . pointerMode ] + ' ' + mousePointer . identifier ) ;
@@ -684,8 +686,12 @@ Phaser.Utils.Debug.prototype = {
684686 var p = pointers [ i ] ;
685687
686688 this . line ( ' ' + ( p . active ? '+' : '-' ) + ' ' + modes [ p . pointerMode ] + ' ' + p . identifier ) ;
689+
690+ if ( p . active ) { active += 1 ; } else { free += 1 ; }
687691 }
688692
693+ this . line ( 'Active: ' + active + ' Free: ' + free ) ;
694+
689695 this . stop ( ) ;
690696
691697 } ,
You can’t perform that action at this time.
0 commit comments