-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,625 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25420.1 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CitraTouchControl", "CitraTouchControl\CitraTouchControl.csproj", "{88E59835-C121-4BEE-956F-85A612B3D2C4}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{88E59835-C121-4BEE-956F-85A612B3D2C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{88E59835-C121-4BEE-956F-85A612B3D2C4}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{88E59835-C121-4BEE-956F-85A612B3D2C4}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{88E59835-C121-4BEE-956F-85A612B3D2C4}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > | ||
<section name="CitraTouchControl.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> | ||
</sectionGroup> | ||
</configSections> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> | ||
</startup> | ||
<userSettings> | ||
<CitraTouchControl.Properties.Settings> | ||
<setting name="A_KEY" serializeAs="String"> | ||
<value>65</value> | ||
</setting> | ||
<setting name="B_KEY" serializeAs="String"> | ||
<value>83</value> | ||
</setting> | ||
<setting name="X_KEY" serializeAs="String"> | ||
<value>90</value> | ||
</setting> | ||
<setting name="Y_KEY" serializeAs="String"> | ||
<value>88</value> | ||
</setting> | ||
<setting name="L_KEY" serializeAs="String"> | ||
<value>81</value> | ||
</setting> | ||
<setting name="R_KEY" serializeAs="String"> | ||
<value>87</value> | ||
</setting> | ||
<setting name="LEFT_KEY" serializeAs="String"> | ||
<value>37</value> | ||
</setting> | ||
<setting name="RIGHT_KEY" serializeAs="String"> | ||
<value>39</value> | ||
</setting> | ||
<setting name="UP_KEY" serializeAs="String"> | ||
<value>38</value> | ||
</setting> | ||
<setting name="DOWN_KEY" serializeAs="String"> | ||
<value>40</value> | ||
</setting> | ||
<setting name="START_KEY" serializeAs="String"> | ||
<value>77</value> | ||
</setting> | ||
<setting name="SELECT_KEY" serializeAs="String"> | ||
<value>78</value> | ||
</setting> | ||
<setting name="IsTouchEnabled" serializeAs="String"> | ||
<value>False</value> | ||
</setting> | ||
<setting name="AreControlsHidden" serializeAs="String"> | ||
<value>False</value> | ||
</setting> | ||
<setting name="KeyPressDuration" serializeAs="String"> | ||
<value>50</value> | ||
</setting> | ||
</CitraTouchControl.Properties.Settings> | ||
</userSettings> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<Application x:Class="CitraTouchControl.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:CitraTouchControl" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
|
||
<Style x:Key="InputButton" TargetType="Button"> | ||
<Setter Property="OverridesDefaultStyle" Value="True"/> | ||
<Setter Property="Background" Value="Transparent"/> | ||
<Setter Property="Opacity" Value="0.4"/> | ||
<Setter Property="BorderThickness" Value="0"/> | ||
<Setter Property="SnapsToDevicePixels" Value="True"/> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="Button"> | ||
<Grid Background="{TemplateBinding Background}"> | ||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> | ||
</Grid> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
|
||
</Application.Resources> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
|
||
namespace CitraTouchControl | ||
{ | ||
/// <summary> | ||
/// Interaktionslogik für "App.xaml" | ||
/// </summary> | ||
public partial class App : Application | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{88E59835-C121-4BEE-956F-85A612B3D2C4}</ProjectGuid> | ||
<OutputType>WinExe</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>CitraTouchControl</RootNamespace> | ||
<AssemblyName>CitraTouchControl</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<WarningLevel>4</WarningLevel> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup /> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xaml"> | ||
<RequiredTargetFramework>4.0</RequiredTargetFramework> | ||
</Reference> | ||
<Reference Include="WindowsBase" /> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="PresentationFramework" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ApplicationDefinition Include="App.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</ApplicationDefinition> | ||
<Page Include="KeysWindow.xaml"> | ||
<SubType>Designer</SubType> | ||
<Generator>MSBuild:Compile</Generator> | ||
</Page> | ||
<Page Include="MainWindow.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
<SubType>Designer</SubType> | ||
</Page> | ||
<Compile Include="App.xaml.cs"> | ||
<DependentUpon>App.xaml</DependentUpon> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="GlobalVars.cs" /> | ||
<Compile Include="KeysWindow.xaml.cs"> | ||
<DependentUpon>KeysWindow.xaml</DependentUpon> | ||
</Compile> | ||
<Compile Include="MainWindow.xaml.cs"> | ||
<DependentUpon>MainWindow.xaml</DependentUpon> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Page Include="MenuWindow.xaml"> | ||
<SubType>Designer</SubType> | ||
<Generator>MSBuild:Compile</Generator> | ||
</Page> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="MenuWindow.xaml.cs"> | ||
<DependentUpon>MenuWindow.xaml</DependentUpon> | ||
</Compile> | ||
<Compile Include="Properties\AssemblyInfo.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="Properties\Resources.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DesignTime>True</DesignTime> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
</Compile> | ||
<Compile Include="Properties\Settings.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>Settings.settings</DependentUpon> | ||
<DesignTimeSharedInput>True</DesignTimeSharedInput> | ||
</Compile> | ||
<EmbeddedResource Include="Properties\Resources.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
<None Include="Properties\Settings.settings"> | ||
<Generator>SettingsSingleFileGenerator</Generator> | ||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||
</None> | ||
<AppDesigner Include="Properties\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="App.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="Images\Button_A.png" /> | ||
<Resource Include="Images\Button_B.png" /> | ||
<Resource Include="Images\Button_Down.png" /> | ||
<Resource Include="Images\Button_L.png" /> | ||
<Resource Include="Images\Button_Left.png" /> | ||
<Resource Include="Images\Button_Menu.png" /> | ||
<Resource Include="Images\Button_R.png" /> | ||
<Resource Include="Images\Button_Right.png" /> | ||
<Resource Include="Images\Button_Select.png" /> | ||
<Resource Include="Images\Button_Start.png" /> | ||
<Resource Include="Images\Button_Up.png" /> | ||
<Resource Include="Images\Button_X.png" /> | ||
<Resource Include="Images\Button_Y.png" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace CitraTouchControl | ||
{ | ||
class GlobalVars | ||
{ | ||
// fast access variables so user4settings doesn't have to be loaded/looped through every time user presses a control button | ||
internal static short A_KEY = 0x41; // A | ||
internal static short B_KEY = 0x53; // S | ||
internal static short X_KEY = 0x5A; // Y (Z on QWERTZ-Layout) | ||
internal static short Y_KEY = 0x58; // X | ||
internal static short L_KEY = 0x51; // Q | ||
internal static short R_KEY = 0x57; // W | ||
internal static short LEFT_KEY = 0x25; // Left | ||
internal static short RIGHT_KEY = 0x27; // Right | ||
internal static short UP_KEY = 0x26; // Up | ||
internal static short DOWN_KEY = 0x28; // Down | ||
internal static short START_KEY = 0x4D; // M | ||
internal static short SELECT_KEY = 0x4E; // N | ||
|
||
internal static bool IsTouchEnabled = false; | ||
internal static bool AreControlsHidden = false; | ||
internal static int KeyPressDuration = 50; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<Window x:Class="CitraTouchControl.KeysWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:CitraTouchControl" | ||
mc:Ignorable="d" | ||
Title="CitraTouchControl - Configurate Keys" Height="200" Width="700" Topmost="True" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow" Background="LightGray" FontSize="18" Loaded="Window_Loaded"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="1*"/> | ||
<ColumnDefinition Width="1*"/> | ||
<ColumnDefinition Width="1*"/> | ||
</Grid.ColumnDefinitions> | ||
<GroupBox Grid.Column="0" Header="Face Buttons"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="1*"/> | ||
<RowDefinition Height="1*"/> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="1*"/> | ||
<ColumnDefinition Width="1*"/> | ||
</Grid.ColumnDefinitions> | ||
<GroupBox Grid.Column="0" Grid.Row="0" Header="A:"> | ||
<TextBox x:Name="tbA" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="1" Grid.Row="0" Header="B:"> | ||
<TextBox x:Name="tbB" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="0" Grid.Row="1" Header="X:"> | ||
<TextBox x:Name="tbX" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="1" Grid.Row="1" Header="Y:"> | ||
<TextBox x:Name="tbY" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
</Grid> | ||
</GroupBox> | ||
|
||
<GroupBox Grid.Column="1" Header="Circle Pad"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="1*"/> | ||
<RowDefinition Height="1*"/> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="1*"/> | ||
<ColumnDefinition Width="1*"/> | ||
</Grid.ColumnDefinitions> | ||
<GroupBox Grid.Column="0" Grid.Row="0" Header="Left:"> | ||
<TextBox x:Name="tbLeft" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="1" Grid.Row="0" Header="Right:"> | ||
<TextBox x:Name="tbRight" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="0" Grid.Row="1" Header="Up:"> | ||
<TextBox x:Name="tbUp" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="1" Grid.Row="1" Header="Down:"> | ||
<TextBox x:Name="tbDown" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
</Grid> | ||
</GroupBox> | ||
|
||
<GroupBox Grid.Column="2" Header="Misc"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="1*"/> | ||
<RowDefinition Height="1*"/> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="1*"/> | ||
<ColumnDefinition Width="1*"/> | ||
</Grid.ColumnDefinitions> | ||
<GroupBox Grid.Column="0" Grid.Row="0" Header="L:"> | ||
<TextBox x:Name="tbL" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="1" Grid.Row="0" Header="R:"> | ||
<TextBox x:Name="tbR" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="0" Grid.Row="1" Header="Start:"> | ||
<TextBox x:Name="tbStart" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
<GroupBox Grid.Column="1" Grid.Row="1" Header="Select:"> | ||
<TextBox x:Name="tbSelect" Background="LightGray" VerticalAlignment="Center" TextAlignment="Center" PreviewKeyDown="tb_PreviewKeyDown" /> | ||
</GroupBox> | ||
</Grid> | ||
</GroupBox> | ||
</Grid> | ||
</Window> |
Oops, something went wrong.