Restore the hard-coded HUD keybindings that I inadvertently killed
during deglutification.
This commit is contained in:
parent
0490631250
commit
27290ab0ef
1 changed files with 21 additions and 5 deletions
|
@ -217,9 +217,6 @@ FGInput::makeDefault (bool status)
|
||||||
void
|
void
|
||||||
FGInput::doKey (int k, int modifiers, int x, int y)
|
FGInput::doKey (int k, int modifiers, int x, int y)
|
||||||
{
|
{
|
||||||
// static SGPropertyNode *heading_enabled
|
|
||||||
// = fgGetNode("/autopilot/locks/heading", true);
|
|
||||||
|
|
||||||
// Sanity check.
|
// Sanity check.
|
||||||
if (k < 0 || k >= MAX_KEYS) {
|
if (k < 0 || k >= MAX_KEYS) {
|
||||||
SG_LOG(SG_INPUT, SG_WARN, "Key value " << k << " out of range");
|
SG_LOG(SG_INPUT, SG_WARN, "Key value " << k << " out of range");
|
||||||
|
@ -259,10 +256,29 @@ FGInput::doKey (int k, int modifiers, int x, int y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Use the old, default actions.
|
// Use the old, default actions.
|
||||||
SG_LOG( SG_INPUT, SG_DEBUG, "(No user binding.)" );
|
SG_LOG( SG_INPUT, SG_DEBUG, "(No user binding.)" );
|
||||||
|
|
||||||
|
if (modifiers & KEYMOD_RELEASED)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Hard-coded legacy key handlers.
|
||||||
|
// These need to be turned into FGCommand bindings and mapped via
|
||||||
|
// the input configuration...
|
||||||
|
switch (k) {
|
||||||
|
case 'H':
|
||||||
|
HUD_brightkey( true );
|
||||||
|
break;
|
||||||
|
case 'h':
|
||||||
|
HUD_masterswitch( true );
|
||||||
|
break;
|
||||||
|
case 'I':
|
||||||
|
fgHUDInit2(¤t_aircraft); // Minimal Hud
|
||||||
|
break;
|
||||||
|
case 'i':
|
||||||
|
fgHUDInit(¤t_aircraft); // normal HUD
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Reference in a new issue