mmp / vice

Virtual air traffic control simulator
https://pharr.org/vice
GNU General Public License v3.0
18 stars 25 forks source link

Rework handling of keyboard input for DCB spinners #190

Closed mmp closed 2 months ago

mmp commented 2 months ago

Now there is a DCBSpinner interface and implementations of it encapsulate the sometimes-esoteric logic about which values are valid, how keyboard input is interpreted, etc. When a spinner is active (either due to clicking the DCB or due to an associated keyboard command like ctrl F9 for range rings), keyboard input from the user is passed along to set the associated value.

This also includes some updates to DCB f-key mappings to match CRC STARS. (Ctrl-F3: BRITE, Ctrl-F4: leader line length, Ctrl-F5: char size, F9: VFR plan)

Fixes #107 and #116.

mmp commented 2 months ago

Thanks!