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
Parameter | Type | Description |
---|---|---|
mapping_defs | table | Event-Action mapping array. It specifis an array table of Event-Action mapping definiton |
Event-Action mapping definition
Parameter | Type | Description |
---|---|---|
event | number | Specifies the event ID of the event targeted for mapping. |
action | function, 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.