diff options
| author | 1992414357@qq.com <1992414357@qq.com> | 2025-05-28 09:14:56 +0800 |
|---|---|---|
| committer | 1992414357@qq.com <1992414357@qq.com> | 2025-05-28 09:14:56 +0800 |
| commit | 5a244311d5c9c42b33a49f3cafa7f20017d10305 (patch) | |
| tree | bb5299626d6dfe69d096536d2a5d1df37c922213 | |
| parent | c0244a9d6f657934313e03f67a4b9fa9d93d34b7 (diff) | |
增加 C# 绑定
22 files changed, 263 insertions, 0 deletions
diff --git a/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/.gitignore b/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/.gitignore new file mode 100644 index 0000000..360083c --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/modules.xml +/projectSettingsUpdater.xml +/.idea.NoGamepads_Sharp.iml +/contentModel.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/indexLayout.xml b/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/indexLayout.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="UserContentModel"> + <attachedFolders /> + <explicitIncludes /> + <explicitExcludes /> + </component> +</project>
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/vcs.xml b/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/.idea/.idea.NoGamepads_Sharp/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="$PROJECT_DIR$/../.." vcs="Git" /> + </component> +</project>
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp.sln b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp.sln new file mode 100644 index 0000000..fd0220d --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NoGamepads_Sharp", "NoGamepads_Sharp\NoGamepads_Sharp.csproj", "{9158590E-B520-4381-8514-15080E11A4CA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9158590E-B520-4381-8514-15080E11A4CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9158590E-B520-4381-8514-15080E11A4CA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9158590E-B520-4381-8514-15080E11A4CA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9158590E-B520-4381-8514-15080E11A4CA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp.sln.DotSettings.user b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp.sln.DotSettings.user new file mode 100644 index 0000000..d475194 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp.sln.DotSettings.user @@ -0,0 +1,2 @@ +<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> + <s:String x:Key="/Default/Environment/Hierarchy/Build/BuildTool/DotNetCliExePath/@EntryValue">C:\Program Files (x86)\dotnet\dotnet.exe</s:String></wpf:ResourceDictionary>
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/Class1.cs b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/Class1.cs new file mode 100644 index 0000000..bfcb15d --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/Class1.cs @@ -0,0 +1,8 @@ +using System; + +namespace NoGamepads_Sharp +{ + public class Class1 + { + } +}
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/NoGamepads_Sharp.csproj b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/NoGamepads_Sharp.csproj new file mode 100644 index 0000000..4f444d8 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/NoGamepads_Sharp.csproj @@ -0,0 +1,7 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <TargetFramework>net6.0</TargetFramework> + </PropertyGroup> + +</Project> diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..36203c7 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// <autogenerated /> +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.AssemblyInfo.cs b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.AssemblyInfo.cs new file mode 100644 index 0000000..b1a9878 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("NoGamepads_Sharp")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("NoGamepads_Sharp")] +[assembly: System.Reflection.AssemblyTitleAttribute("NoGamepads_Sharp")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// 由 MSBuild WriteCodeFragment 类生成。 + diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.AssemblyInfoInputs.cache b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.AssemblyInfoInputs.cache new file mode 100644 index 0000000..2cfbfd7 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +1547cc1ff559d962a9fa5b9397a61cee0eeefc03 diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.GeneratedMSBuildEditorConfig.editorconfig b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..7dc5bae --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,10 @@ +is_global = true +build_property.TargetFramework = net6.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = NoGamepads_Sharp +build_property.ProjectDir = D:\TINP\NoGamepads\core_csharp\NoGamepads_Sharp\NoGamepads_Sharp\ diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.assets.cache b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.assets.cache Binary files differnew file mode 100644 index 0000000..bd5b806 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.assets.cache diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.csproj.AssemblyReference.cache b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.csproj.AssemblyReference.cache Binary files differnew file mode 100644 index 0000000..0168a70 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/Debug/net6.0/NoGamepads_Sharp.csproj.AssemblyReference.cache diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.dgspec.json b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.dgspec.json new file mode 100644 index 0000000..7fa7507 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.dgspec.json @@ -0,0 +1,63 @@ +{ + "format": 1, + "restore": { + "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj": {} + }, + "projects": { + "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj", + "projectName": "NoGamepads_Sharp", + "projectPath": "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj", + "packagesPath": "C:\\Users\\CatilGrass\\.nuget\\packages\\", + "outputPath": "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\CatilGrass\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Users\\CatilGrass\\.dotnet\\sdk\\6.0.428\\RuntimeIdentifierGraph.json" + } + } + } + } +}
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.g.props b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.g.props new file mode 100644 index 0000000..23d8bdd --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.g.props @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> + <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> + <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> + <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> + <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\CatilGrass\.nuget\packages\</NuGetPackageFolders> + <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> + <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.2</NuGetToolVersion> + </PropertyGroup> + <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <SourceRoot Include="C:\Users\CatilGrass\.nuget\packages\" /> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.g.targets b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/NoGamepads_Sharp.csproj.nuget.g.targets @@ -0,0 +1,2 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.assets.json b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.assets.json new file mode 100644 index 0000000..7fd6cd9 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.assets.json @@ -0,0 +1,68 @@ +{ + "version": 3, + "targets": { + "net6.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net6.0": [] + }, + "packageFolders": { + "C:\\Users\\CatilGrass\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj", + "projectName": "NoGamepads_Sharp", + "projectPath": "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj", + "packagesPath": "C:\\Users\\CatilGrass\\.nuget\\packages\\", + "outputPath": "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\CatilGrass\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Users\\CatilGrass\\.dotnet\\sdk\\6.0.428\\RuntimeIdentifierGraph.json" + } + } + } +}
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.nuget.cache b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.nuget.cache new file mode 100644 index 0000000..d8a1df1 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "cliZ4bcX9Ag=", + "success": true, + "projectFilePath": "D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj", + "expectedPackageFiles": [], + "logs": [] +}
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.packagespec.json b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.packagespec.json new file mode 100644 index 0000000..804f131 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/project.packagespec.json @@ -0,0 +1 @@ +"restore":{"projectUniqueName":"D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj","projectName":"NoGamepads_Sharp","projectPath":"D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\NoGamepads_Sharp.csproj","outputPath":"D:\\TINP\\NoGamepads\\core_csharp\\NoGamepads_Sharp\\NoGamepads_Sharp\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net6.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Users\\CatilGrass\\.dotnet\\sdk\\6.0.428\\RuntimeIdentifierGraph.json"}}
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/rider.project.model.nuget.info b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/rider.project.model.nuget.info new file mode 100644 index 0000000..52fdab5 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/rider.project.model.nuget.info @@ -0,0 +1 @@ +17483145130703859
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/rider.project.restore.info b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/rider.project.restore.info new file mode 100644 index 0000000..52fdab5 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/NoGamepads_Sharp/obj/rider.project.restore.info @@ -0,0 +1 @@ +17483145130703859
\ No newline at end of file diff --git a/core_csharp/NoGamepads_Sharp/global.json b/core_csharp/NoGamepads_Sharp/global.json new file mode 100644 index 0000000..1bcf6c0 --- /dev/null +++ b/core_csharp/NoGamepads_Sharp/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "6.0.0", + "rollForward": "latestMinor", + "allowPrerelease": false + } +}
\ No newline at end of file |
