aboutsummaryrefslogtreecommitdiff

No Gamepads

ITEM SHIELD
License MIT License
Status Development Status

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 能够扩展您游戏的控制能力:让玩家通过移动设备作为游戏控制器进行连接。对于本地多人游戏,它使玩家无需配备独立手柄、无需挤在同一键盘前操作,也免除了配置复杂按键映射的麻烦——只需一部智能手机即可实现!

Get Started

​ If you want to develop a project or compile and run a library using this project, please follow the steps below:

Compile and Export Executables and Runtime Library

Clone the repository locally.

git clone git@github.com:CatilGrass/NoGamepads.git
cd NoGamepads

Then run Cargo.

# Build in development environment
cargo dev_build
# Or build in release environment
cargo release_build

# Export the project to ./export/'current_version_number'/
cargo release

# Export the project to ./export/dev/
cargo dev

Run the Console Program

​ You can run the console program in the following ways:

Use Cargo to run.

cargo padc --help

Run directly after compiling the executable.

# Linux & Unix
cargo dev_build
cargo dev
./export/dev/bin/padc --help # TODO :: Not adapted yet
:: Windows
cargo dev_build
cargo dev
.\export\dev\bin\padc.exe --help

Apps

  1. Console App [Goto]
  2. Client App (Bevy) [Goto]

​ If you want to learn more about this, please refer to the following documentation:

  1. NoGamepads Bindings