gir.triggerEvent

Top  Previous  Next

Trigger event allows a script to send events into Girder. This could be useful when creating plugins or to do advanced scripting with Girder.

Definition

gir.triggerEvent(eventString, eventDevice, keyMod, payloads)

 

Name

Type

Description

eventString

string

The eventstring to send into Girder

eventDevice

number

The device number

keyMod

Promixis.Event.Modifiers

The modifier for this event

 

Example

local payloads = {

 "pop",

 "crackle"

}

gir.triggerEvent("Bang!", 18, Promixis.Event.MOD_ON, payloads)

 

This example will trigger the event "Bang!" on device 18 inside Girder with 2 payloads "pop" and "crackle".

Related

Promixis.EventNode.Modifiers

Availability

Lua