2.0 KiB
2.0 KiB
InputProcessor Class
Namespace: Nodify.Interactivity
Assembly: Nodify
Inheritance: Object → InputProcessor
Derived: InputProcessor.Shared<TElement>
References: Connector, IInputHandler, InputProcessorExtensions, ItemContainer, Minimap, NodifyEditor
Processes input events and delegates them to registered handlers.
public class InputProcessor
Constructors
InputProcessor()
public InputProcessor();
Properties
RequiresInputCapture
Gets a value indicating whether the processor has ongoing interactions that require input capture to remain active.
public virtual bool RequiresInputCapture { get; set; }
Property Value
Methods
AddHandler(IInputHandler)
Adds an input handler to the processor.
public void AddHandler(IInputHandler handler);
Parameters
handler IInputHandler: The input handler to add.
Clear()
Clears all registered handlers.
public void Clear();
ProcessEvent(InputEventArgs)
Processes an input event and delegates it to the registered handlers.
public void ProcessEvent(InputEventArgs e);
Parameters
e InputEventArgs: The input event arguments to process.
RemoveHandlers()
public void RemoveHandlers<T>();