Hi,
Beside the RELEASE event available, it would be useful to have also a PRESS event to trigger.
For example in the FENIX A320, most of buttons takes two commands to operate, 1 to press and 1 to release button.
Thanks
Press Event missing
-
- Posts: 9
- Joined: Thu Nov 10, 2022 6:55 pm
Press Event missing
Last edited by roland_lfor on Thu Feb 23, 2023 6:10 pm, edited 3 times in total.
-
- Posts: 5346
- Joined: Thu Jul 27, 2017 12:22 am
Re: Push Event missing
Yes it has, this is the "PRESS_CALLBACK", so I don't see it missing in any case, we just have to create two separate related functions, one for PRESS and one for RELEASE, that's it !roland_lfor wrote: ↑Tue Feb 21, 2023 8:02 am Hi,
Beside the RELEASE event available, it would be useful to have also a PUSH event to trigger.
For example in the FENIX A320, most of buttons takes two commands to operate, 1 to push and 1 to release button.
Thanks
https://siminnovations.com/wiki/index.p ... Button_add
Re: Push Event missing
Hi,
Push is press in this case. In addition you can’t have a release without a press so if you have a release callback coded then you must also have the press coded.
Push is press in this case. In addition you can’t have a release without a press so if you have a release callback coded then you must also have the press coded.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
-
- Posts: 9
- Joined: Thu Nov 10, 2022 6:55 pm
Re: Push Event missing
Sorry I'm a bit lost, from the .json we have only access to the "button_released_code" event, correct?
Code: Select all
{
"name": "Attitude reference",
"minor_cw_code": "(>K:ATTITUDE_BARS_POSITION_UP)",
"minor_ccw_code": "(>K:ATTITUDE_BARS_POSITION_DOWN)",
"minor_acceleration": 5,
"major_cw_code": "(>K:ATTITUDE_BARS_POSITION_UP)",
"major_ccw_code": "(>K:ATTITUDE_BARS_POSITION_DOWN)",
"major_acceleration": 10,
"button_released_code": "(>K:ATTITUDE_CAGE_BUTTON)",
"order": 103000
}
Re: Press Event missing
No there's also released. See the documentation:
https://siminnovations.com/wiki/index.p ... nced_usage
https://siminnovations.com/wiki/index.p ... nced_usage
Re: Press Event missing
Oh I see now. I missed that this was in the KnobFS section. I don’t use KnobFS so can’t help.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: Press Event missing
Hi,
We can't expose the pressed since that is used to determine if the edit menu should be enabled.
Otherwise when you are trying to enable the edit menu, you will trigger the mode event as well, which can be annoying.
Corjan
We can't expose the pressed since that is used to determine if the edit menu should be enabled.
Otherwise when you are trying to enable the edit menu, you will trigger the mode event as well, which can be annoying.
Corjan
-
- Posts: 9
- Joined: Thu Nov 10, 2022 6:55 pm
Re: Press Event missing
Would it be possible to use for example Ctrl key + push to switch to the selection menu mode, and keep a single push to fire Press event?
Or left mouse click + push?
Or left mouse click + push?