getGamepadName

Script::getGamepadName

Returns the name of the gamepad.

Declaration

std::string getGamepadName(GamepadID gamepadID);

Parameters

Name

Type

Description

gamepadID

GamepadID

The gamepad to get the name of.

Returns

An std::string containing the name of the gamepad.

The gamepad’s name may be empty, this function will then return the empty string "".