Gamepad Get Count Icon Get Gamepad Count

You can use this action to get the number of gamepads connected to the device running your game. The number returned will be between 0 and 12.

 

Action Syntax:

Get Gamepad Count Action

Arguments:

ArgumentDescription
TargetThe target variable to store the returned value in.

 

Example:

Get Gamepad Count ExampleThe above action block code gets the number of gamepads connected and assigns the value to a temporary local variable. This is then checked to see if it is more than 0 and a global variable set accordingly.