Skip to content

Commit

Permalink
fix for KSP 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Knappe committed Jun 27, 2017
1 parent f96a0d3 commit 580d2da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions TrimPlus.version
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
},
"VERSION" : {
"MAJOR" : 1,
"MINOR" : 2,
"PATCH" : 1,
"MINOR" : 3,
"PATCH" : 0,
"BUILD" : 0
},
"DOWNLOAD" : "https://github.com/ItMustBeACamel/KSP_TrimPlus/releases",
"KSP_VERSION" : {
"MAJOR" : 1,
"MINOR" : 2,
"MINOR" : 3,
"PATCH" : 0
},
"KSP_VERSION_MIN" : {
"MAJOR" : 1,
"MINOR" : 2,
"MINOR" : 3,
"PATCH" : 0
},
"KSP_VERSION_MAX" : {
"MAJOR" : 1,
"MINOR" : 2,
"MINOR" : 3,
"PATCH" : 0
}
}
Expand Down
6 changes: 2 additions & 4 deletions source/TrimPlus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>E:\Kerbal Space Program\beta\KSP_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
<HintPath>E:\Kerbal Space Program\1.2_dev\KSP_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -42,8 +41,7 @@
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>E:\Kerbal Space Program\beta\KSP_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
<HintPath>E:\Kerbal Space Program\1.2_dev\KSP_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions source/TrimPlusGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public void Update()
{
if (listeningForPrimary)
{
listeningFor.primary = code;
listeningFor.primary = new KeyCodeExtended(code);
listeningFor = null;
break;
}
else
{
listeningFor.secondary = code;
listeningFor.secondary = new KeyCodeExtended(code);
listeningFor = null;
break;
}
Expand Down Expand Up @@ -117,8 +117,8 @@ public void windowFunc(int id)

if (GUILayout.Button("x", GUILayout.ExpandWidth(false)))
{
binding.primary = KeyCode.None;
binding.secondary = KeyCode.None;
binding.primary = new KeyCodeExtended(KeyCode.None);
binding.secondary = new KeyCodeExtended(KeyCode.None);
}

GUILayout.EndHorizontal();
Expand Down

0 comments on commit 580d2da

Please sign in to comment.