Link Search Menu Expand Document

AddCustomActionMapping

Function name AddCustomActionMapping
Function Library Content/DRGLib/InputFunctions/LIB_F_Input
Inputs LIB_A_MainRef(LIB_A_Main Object reference)
ActionName(Name) The name of the custom action
DefaultChord(InputChord Structure) The key combo needed to trigger the action by default
OverlapBehavior(LIB_E_InputOverlap Enum) Whether/how the custom action is permitted to overlap with other inputs
ActionDescription(String) A short description of what the action does
CollisionLayer(Name) Specifies a family of inputs that can collide with each other. Useful if your inputs only need to worry about colliding with each other, but not other mods

The meat and potatoes of the Input library. Sets up a custom input with DRGLib, avoiding a lot of the grunt work. If a custom action with the same name already exists in DRGLib, do nothing

Note: OverlapBehavior is only considered by DRGLib in the LIB_WT_InputKeySelector. The RemapCustomActionMapping node doesn’t care

For full notes on usage refer to the input tutorial TODO

Node Appearance:
Example image