Corjan wrote: ↑Fri Aug 06, 2021 8:43 am
Hi,
Maybe I'm overlooking something, but it seems you can only do these command types in X-plane:
XPLMCommandBegin
XPLMCommandOnce
XPLMCommandEnd
https://developer.x-plane.com/sdk/XPLMUtilities/
Not sure what they do when you send a 'PRESS', it is not something native to X-plane it seems,
Corjan
Corjan.
Thank you for taking a look. Not sure if something has changed. If one clicks on <Details> in DRT A window pops up and one has two options. <Command press> & and <Command once>
If we have the the options "BEGIN", "ONCE" and "END" like we have is the SI commands that would be perfect.
If the command is then used in a button, while the button is pressed then the command is fired. When the button is released then stop is fired.
Keith
EDIT: Check point 8.3 in the link you shared.
Looks Like press is depreciated ,
"XPLMCommandButtonPress
XPLM_API void XPLMCommandButtonPress(
XPLMCommandButtonID inButton);
This function simulates any of the actions that might be taken by pressing a joystick button. However, this lets you call the command directly rather than have to know which button is mapped where. Important: you must release each button you press. The APIs are separate so that you can ‘hold down’ a button for a fixed amount of time.
Deprecated: use XPLMCommandBegin."
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card