true
if the configurations are successfully loaded and injected; false
if no configurations are found in localStorage.
This method checks if the 'mappingConfigs' entry exists in localStorage. If it does not exist, the method returns false
.
If 'mappingConfigs' exists, it parses the configurations and injects each configuration into the input controller
for the corresponding gamepad or device key. The method then returns true
to indicate success.
Optional
sessionData: SessionSaveDataOptional
initialStarterData: StarterDataSaves a gamepad setting to localStorage.
The gamepad setting to save.
The index of the value to set for the gamepad setting.
true
if the setting is successfully saved.
This method initializes an empty object for gamepad settings if none exist in localStorage.
It then updates the setting in the current scene and iterates over the default gamepad settings
to update the specified setting with the new value. Finally, it saves the updated settings back
to localStorage and returns true
to indicate success.
Saves the mapping configurations for a specified device.
The name of the device for which the configurations are being saved.
The configuration object containing custom mapping details.
true
if the configurations are successfully saved.
Loads the mapping configurations from localStorage and injects them into the input controller.