Skip to content

Input system

Gombaris edited this page Dec 1, 2023 · 3 revisions

TODO

Table of behavior in different configurations

positions centering single button +/- button togglable event draggable
0 no no no no value change yes
1 no yes no yes key down no
2 no yes yes yes key up yes
3+ no yes yes yes key up yes
0 yes no no no value change yes
1 yes yes no yes key down no
2 yes yes yes yes key down and up yes
3+ yes no yes no key up yes
  • single button: can be action controlled by single button binding
  • +/- button: can be action controlled by two + and - buttons
  • togglable
  • event: in what situation is handler (function callback) called
  • draggable: can be action controlled by dragging in cockpit

Notes:

  • When "positions" is set to 0, the value moves from "minval" to "maxval". This is the only option, where the action handler continuously sends events together with info about value change, depending on the parameters.

  • Elements with "positions" set to 1 ignore "centering" value, they center automatically.