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.
参数 描述 目标 The target variable to store the returned value in.
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.