- Source: src/input/InputPluginCache.js (Line 13)
Methods
-
<static> getPlugin(key)
-
Returns the input plugin object from the cache based on the given key.
Parameters:
Name Type Description keystring The key of the input plugin to get.
- Since: 3.10.0
- Source: src/input/InputPluginCache.js (Line 40)
Returns:
The input plugin object.
-
<static> install(target)
-
Installs all of the registered Input Plugins into the given target.
Parameters:
Name Type Description targetPhaser.Input.InputPlugin The target InputPlugin to install the plugins into.
- Since: 3.10.0
- Source: src/input/InputPluginCache.js (Line 56)
-
<static> register(key, plugin, mapping, settingsKey, configKey)
-
Static method called directly by the Core internal Plugins. Key is a reference used to get the plugin from the plugins object (i.e. InputPlugin) Plugin is the object to instantiate to create the plugin Mapping is what the plugin is injected into the Scene.Systems as (i.e. input)
Parameters:
Name Type Description keystring A reference used to get this plugin from the plugin cache.
pluginfunction The plugin to be stored. Should be the core object, not instantiated.
mappingstring If this plugin is to be injected into the Input Plugin, this is the property key used.
settingsKeystring The key in the Scene Settings to check to see if this plugin should install or not.
configKeystring The key in the Game Config to check to see if this plugin should install or not.
- Since: 3.10.0
- Source: src/input/InputPluginCache.js (Line 19)
-
<static> remove(key)
-
Removes an input plugin based on the given key.
Parameters:
Name Type Description keystring The key of the input plugin to remove.
- Since: 3.10.0
- Source: src/input/InputPluginCache.js (Line 85)
