Jump to content

Recommended Posts

Posted

Hi,

In the keyfile, what do the "value_down" and "value_up" mean?

 

e.g. { down = elec_commands.MainPwrSw, cockpit_device_id = devices.ELEC_INTERFACE, value_down = -1.0, name = _('MAIN PWR Switch - OFF'), category = {_('Left Console'), _('ELEC Control Panel')}},

 

or:

...value_down = 1.0, value_up = 0.0,...

 

 

Thanks

Posted

Not sure but I'd reckon the value down is the Key pressed the value up is when the key is released

 

For a switch the value up would probably be zero, for a button the mirror image of the value down.

 

With a switch you want the value to change and stay changed, with a button you want the value to release the pressed button action.

 

You may also find that switches which toggle an action have different values up and down.

 

That's an "educated" guess though I'm pretty new to all of this and investigating myself, hopefully somebody with some real experteze will come along soon

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...