Definition
get_cockpit_input(index)
Features
You can check the status of the Cockpit button.
(6 Button)
(5 Button)
Parameter
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
index |
int |
None |
Notifies the press/release status of a designated button among 5 (or 6) Cockpit buttons |
Return
|
Value |
Description |
|---|---|
|
ret |
0: Release the button 1: Press the button |
Example
Python
get_cockpit_input(1)