InputMappingContext

Represents a mapping of keybinds.

Summary
InputMappingContextRepresents a mapping of keybinds.
Functions
NKEnableEnables functions to be fired when input is recieved.
NKDisableDisables functions to be fired when input is recieved.
NKIsEnabledQueries if the context is currently enabled or not.
NKSetInputPropagationSets if this context will allow input to propagate downwards to any contexts that this was pushed on top of.
NKAllowsInputPropagationQueries if the context is allowing input propagation or not.
NKRegisterNamedCommandRegister a lua function callback to a command name.
NKRegisterDirectCommandRegister a lua function callback to a keybind

Functions

NKEnable

Enables functions to be fired when input is recieved.

NKDisable

Disables functions to be fired when input is recieved.

NKIsEnabled

Queries if the context is currently enabled or not.

Returns

boolenabled / disabled

NKSetInputPropagation

Sets if this context will allow input to propagate downwards to any contexts that this was pushed on top of.

Paramaters

boolenable / disable

NKAllowsInputPropagation

Queries if the context is allowing input propagation or not.

Returns

boolenabled / disabled

NKRegisterNamedCommand

Register a lua function callback to a command name.

Paramaters

stringcommand name
Tablelua script / table to target when searching for callback function
stringcallback function name
floatrepeat interval delay

NKRegisterDirectCommand

Register a lua function callback to a keybind

Example

myContext:NKRegisterDirectCommand(“LCTRL + T”, self, “DoSomething”, 0.2) Eternus.InputSystem:NKPushInputContext(myContext)

Paramaters

stringkeybind
Tablelua script / table to target when searching for callback function
stringcallback function name
floatrepeat interval delay
Close