diff --git a/App.xaml b/App.xaml
index 622e6b5..8014eb3 100644
--- a/App.xaml
+++ b/App.xaml
@@ -2,7 +2,8 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MouseToJoystick2"
- StartupUri="MainWindow.xaml">
+ StartupUri="MainWindow.xaml"
+ ShutdownMode="OnMainWindowClose">
diff --git a/MainWindow.xaml b/MainWindow.xaml
index ce11710..599b63b 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -27,5 +27,6 @@
+ Open Source Info
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
index d57dcea..0ebdd90 100644
--- a/MainWindow.xaml.cs
+++ b/MainWindow.xaml.cs
@@ -46,5 +46,10 @@ private void ToggleButton_Click(object sender, RoutedEventArgs e)
model.SettingsEnabled = true;
}
}
+
+ private void Hyperlink_Click(object sender, RoutedEventArgs e)
+ {
+ new OSSInfoWindow().Show();
+ }
}
}
diff --git a/MouseToJoystick2.csproj b/MouseToJoystick2.csproj
index ddefcb5..4969963 100644
--- a/MouseToJoystick2.csproj
+++ b/MouseToJoystick2.csproj
@@ -77,10 +77,17 @@
MainWindow.xaml
Code
+
+ Designer
+ MSBuild:Compile
+
+
+ OSSInfoWindow.xaml
+
Code
diff --git a/MouseToJoystickHandler.cs b/MouseToJoystickHandler.cs
index 3740ac8..2007d42 100644
--- a/MouseToJoystickHandler.cs
+++ b/MouseToJoystickHandler.cs
@@ -24,9 +24,9 @@ class MouseToJoystickHandler : IDisposable
private vJoy joystick = null;
private readonly uint id;
- private long AXIS_MAX;
- private long AXIS_MIN;
- private long AXIS_MID;
+ private readonly long AXIS_MAX;
+ private readonly long AXIS_MIN;
+ private readonly long AXIS_MID;
private const uint VJOY_BTN_1 = 1;
private const uint VJOY_BTN_2 = 2;
diff --git a/OSSInfoWindow.xaml b/OSSInfoWindow.xaml
new file mode 100644
index 0000000..1cb2d44
--- /dev/null
+++ b/OSSInfoWindow.xaml
@@ -0,0 +1,64 @@
+
+
+This project uses code from open source projects.
+
+# MouseKeyHook
+Copyright (c) 2004-2015, George Mamaladze
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of asssdwd nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# vJoy
+MIT License
+
+Copyright (c) 2017 Shaul Eizikovich
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+
diff --git a/OSSInfoWindow.xaml.cs b/OSSInfoWindow.xaml.cs
new file mode 100644
index 0000000..19e43d9
--- /dev/null
+++ b/OSSInfoWindow.xaml.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace MouseToJoystick2
+{
+ ///
+ /// Interaction logic for OSSInfoWindow.xaml
+ ///
+ public partial class OSSInfoWindow : Window
+ {
+ public OSSInfoWindow()
+ {
+ InitializeComponent();
+ }
+ }
+}