Difference between revisions of "Controller:getPlayerCount"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns amount of connected controllers.
 
Returns amount of connected controllers.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = Controller:getPlayerCount()
 
(number) = Controller:getPlayerCount()
 
</source>
 
</source>

Revision as of 14:26, 13 July 2023

Available since: Gideros 2014.01
Class: Controller

Description

Returns amount of connected controllers. <syntaxhighlight lang="lua"> (number) = Controller:getPlayerCount() </source>

Return values

Returns (number) amount of connected controllers