get_cockpit_input(index)
Features
You can check the status of the Cockpit button.
(5 Button)
(6 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
get_cockpit_input(1)