input.is_down
Returns whether an exact input chord is held.
Syntax
ue.input.is_down(chord: string) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
chord | string | Key with optional modifiers. |
Returns
| Type | Description |
|---|---|
boolean | Whether the exact chord is currently down. |
Example
if ue.input.is_down("Shift+F2") then
print("held")
endNotes
- Input is polled once per engine tick.