gamepad_get_mapping

This function can be used to retrieve the mapping string for the gamepad. This string will be either:

For more information on the formatting of the returned map string, please see the function gamepad_test_mapping().

 

Syntax:

gamepad_get_mapping(index);

ArgumentType Description
indexReal Which gamepad index "slot" to get the mapping from.

 

Returns:

String

 

Example:

var _gpMap = gamepad_get_mapping(global.PadIndex);
show_debug_message("Gamepad Mapping = " + _gpMap);

The above code get the map string for the given gamepad slot, and then output it to the console for debugging.