So i have been trying to get single button working. I have tested this with default MFS event on Airbus and connection/code seems to work. However when I try to use B738 PMDG events its not doing anything?
Does Air Manager needs to work with PMDG events first or am I missing something? its like its not seeing them and as they are 3rd party and not built into MFS I assume it's not seeing those events.
Whats my best way here? Wait for AM to add PMDG support or use different code? I have seen here on forum that someone managed to make panels for PMDG but he used something different in place of events and I am not sure what it is.
Code below seems to work with PMDG but that's when using ROTOR_BRAKE which I have no idea what it is, it's code of the person from this forum.
Now when I use my code below, it does not work.-- Callback function which is called when the button is pressed
function button_pressed() fs2020_event("ROTOR_BRAKE", 50001) end
-- The following print function is not necessary but can help you to verify that the button has been pressed
print("GPWS TEST")
-- TEST GPWS
-- function() fs2020_event("ROTOR_BRAKE", 50004) end)
-- Create a button with the name 'Com swap'
hw_button_add("GPWS TEST", button_pressed)
Open to nay ideas and suggestions.-- Callback function which is called when the button is pressed
function button_pressed() fs2020_event("EVT_GPWS_SYS_TEST_BTN") end
-- The following print function is not necessary but can help you to verify that the button has been pressed
print("GPWS TEST")
-- Create a button with the name 'Com swap'
hw_button_add("GPWS BUTTON", button_pressed)
Thanks
Krys