Enum KeybindActivationType
Specifies when the keybind should trigger: on key press (KeyDown), on key release (KeyUp), or both.
Namespace: EyeAuras.Scripting.Api
Assembly: EyeAuras.Scripting.dll
Syntax
public enum KeybindActivationType
Remarks
KeyDown: Triggers the associated method when the specified key is pressed down.KeyUp: Triggers the associated method when the specified key is released.
[Keybind("Ctrl+A", ActivationType = KeybindActivationType.KeyDown)] // Invokes on key press
public void OnKeyDownAction() { /* logic */ }
[Keybind("Ctrl+A", ActivationType = KeybindActivationType.KeyUp)] // Invokes on key release
public void OnKeyUpAction() { /* logic */ }
Fields
| Name | Description |
|---|---|
| KeyDown | Triggers only on KeyDown (when the key is pressed). |
| KeyUp | Triggers only on KeyUp (when the key is released). |