viktorradnai / flightgear-ask21

ASK21 glider model for Flightgear
5 stars 6 forks source link

Keyboard mapping to close window panels #112

Closed viktorradnai closed 7 years ago

viktorradnai commented 7 years ago

I'd like to have one button (say d or D) to open / close the window panels. It's really annoying having to close both of them individually, using the mouse, on every launch, or having to put up with the extra wind noise.

gilbertohasnofb commented 7 years ago

t's really annoying having to close both of them individually, using the mouse, on every launch

Would it perhaps be better to make them closed by default then? In which position do you normally find them in the gliders of your soaring club?

viktorradnai commented 7 years ago

Yes, it's necessary both to access the locking mechanism and the handle (a small metal tab fitted to the frame on the inside) from outside. I sometimes forget to close it on actual launches :)

On 20 March 2017 at 08:57, Gilberto Agostinho notifications@github.com wrote:

t's really annoying having to close both of them individually, using the mouse, on every launch

Would it perhaps be better to make them closed by default then? You normally find them in which position in the gliders of your soaring club?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/viktorradnai/flightgear-ask21/issues/112#issuecomment-287704046, or mute the thread https://github.com/notifications/unsubscribe-auth/AEhMgonIbnVAQZYQS7tYgbel7Jnnysziks5rnj-PgaJpZM4Mh7Ln .

-- My other sig is hilarious

gilbertohasnofb commented 7 years ago

I see, so then the keyboard shortcut is best indeed.

ghost commented 7 years ago

So we'll take d to open both and D to close them?

gilbertohasnofb commented 7 years ago

What about d toggling them? I.e. if opened, then d closes it, if closed then d opens it?

ghost commented 7 years ago

Okay :+1:

ghost commented 7 years ago

I tried with this code but somehow it only closes but you can't open it anymore:

d Toggle Both Windows sim/model/door-positions/frontwin/position-norm 0.5 property-interpolate sim/model/door-positions/frontwin/position-norm 1 0.5 sim/model/door-positions/frontwin/position-norm 0.5 property-interpolate sim/model/door-positions/frontwin/position-norm 0 0.5
gilbertohasnofb commented 7 years ago

@D-ECHO if nobody figures it out until tomorrow then I will try having a look at it. But perhaps take a look on how FG handles landing gear retraction/extension in other planes as the code should be nearly identical as in our case.

gilbertohasnofb commented 7 years ago

Closed via https://github.com/viktorradnai/flightgear-ask21/pull/114

(shortcut used is Shift+D)