diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2025-06-13 20:07:53 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2025-06-13 20:07:53 +0800 |
| commit | 83c6fc2d55cdd7de949f2815b86dfe0b9cc18f27 (patch) | |
| tree | b05a51ddea06694f3e5ba9671ef436cc3681c97f | |
| parent | a210ab86ee43dea3b4d9d0f2af5750c5a4adf096 (diff) | |
.
| -rw-r--r-- | README.md | 19 | ||||
| -rw-r--r-- | core/bindings/About_bindings.md | 15 | ||||
| -rw-r--r-- | core/bindings/engine/nogamepads_bevy/Bevy_bindings.md | 0 | ||||
| -rw-r--r-- | core/bindings/engine/nogamepads_godot/Godot_bindings.md | 0 | ||||
| -rw-r--r-- | core/bindings/engine/nogamepads_unity/Unity_bindings.md | 0 | ||||
| -rw-r--r-- | core/bindings/engine/nogamepads_unreal/Unreal_bindings.md | 0 | ||||
| -rw-r--r-- | core/bindings/lang/clang/CLang_bindings.md | 0 | ||||
| -rw-r--r-- | core/bindings/lang/csharp/CSharp_bindings.md | 0 | ||||
| -rw-r--r-- | export/.gitignore | 2 | ||||
| -rw-r--r-- | export/dev/bin/completeion/install_completion_powershell.ps1 | 39 | ||||
| -rw-r--r-- | export/docs/How_to_export.md | 2 |
11 files changed, 75 insertions, 2 deletions
@@ -1,3 +1,18 @@ -# No Gamepads Project +# No Gamepads [](https://github.com/CatilGrass/NoGamepads/blob/main/LICENSE-MIT) -## 开始
\ No newline at end of file + `No Gamepads` expands your game's control capabilities: enabling players to connect mobile devices as in-game controllers. For local multiplayer games, it eliminates the need for each player to own a physical controller, avoids crowding around a single keyboard, and removes the hassle of configuring complex input mappings – just use a smartphone! + +--- + + `No Gamepads` 能够扩展您游戏的控制能力:让玩家通过移动设备作为游戏控制器进行连接。对于本地多人游戏,它使玩家无需配备独立手柄、无需挤在同一键盘前操作,也免除了配置复杂按键映射的麻烦——只需一部智能手机即可实现! + + + +# The Plans + + + +# Related Documentation + +1. [How to compile project with Cargo](export/docs/How_to_export.md) +2. [About bindings](./core/bindings/About_bindings.md) diff --git a/core/bindings/About_bindings.md b/core/bindings/About_bindings.md new file mode 100644 index 0000000..cdadb74 --- /dev/null +++ b/core/bindings/About_bindings.md @@ -0,0 +1,15 @@ +# Index + +## Language Bindings + +1. [C_Lang bindings](./lang/clang/CLang_bindings.md) +2. [C_Sharp bindings](./lang/clang/CSharp_bindings.md) + + + +## Game Engine Bindings + +1. [Bevy](./engine/nogamepads_bevy/Bevy_bindings.md) +2. [Godot](./engine/nogamepads_godot/Godot_bindings.md) +3. [Unity](./engine/nogamepads_unity/Unity_bindings.md) +4. [Unreal](./engine/nogamepads_unreal/Unreal_bindings.md)
\ No newline at end of file diff --git a/core/bindings/engine/nogamepads_bevy/Bevy_bindings.md b/core/bindings/engine/nogamepads_bevy/Bevy_bindings.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/core/bindings/engine/nogamepads_bevy/Bevy_bindings.md diff --git a/core/bindings/engine/nogamepads_godot/Godot_bindings.md b/core/bindings/engine/nogamepads_godot/Godot_bindings.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/core/bindings/engine/nogamepads_godot/Godot_bindings.md diff --git a/core/bindings/engine/nogamepads_unity/Unity_bindings.md b/core/bindings/engine/nogamepads_unity/Unity_bindings.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/core/bindings/engine/nogamepads_unity/Unity_bindings.md diff --git a/core/bindings/engine/nogamepads_unreal/Unreal_bindings.md b/core/bindings/engine/nogamepads_unreal/Unreal_bindings.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/core/bindings/engine/nogamepads_unreal/Unreal_bindings.md diff --git a/core/bindings/lang/clang/CLang_bindings.md b/core/bindings/lang/clang/CLang_bindings.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/core/bindings/lang/clang/CLang_bindings.md diff --git a/core/bindings/lang/csharp/CSharp_bindings.md b/core/bindings/lang/csharp/CSharp_bindings.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/core/bindings/lang/csharp/CSharp_bindings.md diff --git a/export/.gitignore b/export/.gitignore index bab68c0..dc96378 100644 --- a/export/.gitignore +++ b/export/.gitignore @@ -5,4 +5,6 @@ !src/** !dev/ !dev/** +!docs/ +!docs/** /dev/bin/pad.exe
\ No newline at end of file diff --git a/export/dev/bin/completeion/install_completion_powershell.ps1 b/export/dev/bin/completeion/install_completion_powershell.ps1 new file mode 100644 index 0000000..8707870 --- /dev/null +++ b/export/dev/bin/completeion/install_completion_powershell.ps1 @@ -0,0 +1,39 @@ +$ErrorActionPreference = "Stop" + +try { + # Check if padc.exe exists in the current directory + if (-not (Test-Path -Path ".\..\padc.exe" -PathType Leaf)) { + throw "Error: padc.exe program not found in the current directory" + } + + # Generate completion script + Write-Host "Generating padc.ps1 file..." + .\..\padc.exe generate-completion powershell | Out-File padc.ps1 -Encoding utf8 -Force + + # Get target profile file path + $targetProfile = $PROFILE.CurrentUserAllHosts + + # Ensure the profile directory exists + $profileDir = Split-Path $targetProfile -Parent + if (-not (Test-Path $profileDir)) { + New-Item -ItemType Directory -Path $profileDir -Force | Out-Null + } + + # Copy the generated script to the profile file + Write-Host "Installing to user profile file..." + Copy-Item padc.ps1 $targetProfile -Force + + # Clean up temporary files (optional) + # Remove-Item padc.ps1 -Force + + Write-Host "`nComplete! Auto-completion has been successfully installed to $targetProfile" -ForegroundColor Green + Write-Host "Effective in new terminal sessions (restart PowerShell to use)" +} +catch { + Write-Host "`nError: $_" -ForegroundColor Red + exit 1 +} + +# Pause the script +Write-Host "`nPress any key to continue..." +$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
\ No newline at end of file diff --git a/export/docs/How_to_export.md b/export/docs/How_to_export.md new file mode 100644 index 0000000..5bdfcd5 --- /dev/null +++ b/export/docs/How_to_export.md @@ -0,0 +1,2 @@ +# How to compile project with Cargo + |
