add get_binding_text() for script api

This commit is contained in:
Sergwest585
2024-10-20 01:22:49 +03:00
parent 9628068faf
commit 67f7006ad0
3 changed files with 27 additions and 0 deletions
+6
View File
@@ -60,6 +60,12 @@ input.get_bindings() -> strings array
Returns all binding names.
```python
input.get_binding_text(bindname: str) -> str
```
Returns text representation of button by binding name.
```python
input.is_pressed(code: str) -> bool
```