love.joystick.saveGamepadMappings

Available since LÖVE 0.9.2
This function is not supported in earlier versions.

Saves the virtual gamepad mappings of all Joysticks that are recognized as gamepads and have either been recently used or their gamepad bindings have been modified.

The mappings are stored as a string for use with love.joystick.loadGamepadMappings.

Function

Saves the gamepad mappings of all relevant joysticks to a file.

Synopsis

mappings = love.joystick.saveGamepadMappings( filename )

Arguments

string filename
The filename to save the mappings string to.

Returns

string mappings
The mappings string that was written to the file.

Function

Returns the mappings string without writing to a file.

Synopsis

mappings = love.joystick.saveGamepadMappings( )

Arguments

None.

Returns

string mappings
The mappings string.

See Also

Other Languages

Personal tools