{{newin|[[11.3]]|113|type=function}}
Gets the full gamepad mapping string of this Joystick, or nil if it's not recognized as a [[Joystick:isGamepad|gamepad]].

The mapping string contains binding information used to map the Joystick's buttons an axes to the standard [[Joystick:isGamepad|gamepad layout]], and can be used later with [[love.joystick.loadGamepadMappings]].
== Function ==
=== Synopsis ===
<source lang="lua">
mappingstring = Joystick:getGamepadMappingString( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|string|mappingstring (nil)|A string containing the Joystick's gamepad mappings, or nil if the Joystick is not recognized as a gamepad.}}

== See Also ==
* [[parent::Joystick]]
* [[Joystick:isGamepad]]
* [[love.joystick.loadGamepadMappings]]
* [[love.joystick.saveGamepadMappings]]
* [[love.joystick.setGamepadMapping]]
* [[Joystick:getGamepadMapping]]
[[Category:Functions]]
{{#set:Description=Gets the full gamepad mapping string of this Joystick, or nil if it's not recognized as a [[Joystick:isGamepad|gamepad]].}}
== Other Languages ==
{{i18n|Joystick:getGamepadMappingString}}