Skip to content

Commit

Permalink
Version 1.29a
Browse files Browse the repository at this point in the history
Correct key lockout
  • Loading branch information
SirDiazo committed Jan 4, 2015
1 parent 47bb438 commit 5b47d35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 13 additions & 10 deletions AGExt/Flight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4410,21 +4410,24 @@ public void Update()
}
}
errLine = "26";
foreach (KeyCode KC in ActiveKeys)
if (InputLockManager.GetControlLock("kOSTerminal") == ControlTypes.None)
{
errLine = "27";
if(Input.GetKeyDown(KC))
foreach (KeyCode KC in ActiveKeys)
{
// print("keydown " + KC);
for (int i = 1; i <= 250; i = i + 1)
{
if (AGXguiKeys[i] == KC)
errLine = "27";
if (Input.GetKeyDown(KC))
{
//print("Key act for some reason " + i);
ActivateActionGroupCheckModKeys(i);
// print("keydown " + KC);
for (int i = 1; i <= 250; i = i + 1)
{
if (AGXguiKeys[i] == KC)
{
//print("Key act for some reason " + i);
ActivateActionGroupCheckModKeys(i);
}
}
}
}
}
}
errLine = "28";
//if (!ActiveActionsCalculated)
Expand Down
2 changes: 1 addition & 1 deletion AGExt/Instantly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class AGXMainMenu :PartModule
//abandoned module, no longer needed for key rebinding
public void Start()
{
print("AGExt Ver. 1.29 loaded");
print("AGExt Ver. 1.29a loaded");
}

}
Expand Down

0 comments on commit 5b47d35

Please sign in to comment.