Gamepad Get 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.


动作语法:

Gamepad Get Count Syntax


参数:

参数 描述
目标 The target variable to store the returned value in.


例如:

Gamepad Get Count Example
The 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.