Skip to main content

mapper.set_primary_mappings()

mapper.set_primary_mappings(mapping_defs)

This funcion sets up the primary Event-Action mappings.

tip

You can reset the primary Event-Action mappings by specifying an empty table, i.e. {}.

Parameters

ParameterTypeDescription
mapping_defstableEvent-Action mapping array.
It specifis an array table of Event-Action mapping definiton

Event-Action mapping definition

ParameterTypeDescription
eventnumberSpecifies the event ID of the event targeted for mapping.
actionfunction,
native-action
Specifies the action targeted for mapping.
A Lua function in this format or native-action can be specified as a action.

Return Values

This function doesn't return any value.

See Also