Class TriggerControl
- Namespace
- Termule.Engine.Components
- Assembly
- Termule.Engine.dll
Control whose value is true for the first tick where a button is down.
public sealed class TriggerControl : Control<bool>, IMessageListener<ButtonDown>, IMessageListener<ButtonUp>, IMessageListener<CharTyped>, IMessageListener<MouseMoved>, IMessageListenerBase
- Inheritance
-
TriggerControl
- Implements
-
IMessageListener<ButtonDown>IMessageListener<ButtonUp>IMessageListener<CharTyped>IMessageListener<MouseMoved>
- Inherited Members
Constructors
TriggerControl(Button)
Control whose value is true for the first tick where a button is down.
public TriggerControl(Button button)
Parameters
buttonButtonThe target button.
Methods
Tick()
Called once per tick.
protected override void Tick()