diff options
| author | 1992414357@qq.com <1992414357@qq.com> | 2025-06-13 19:20:06 +0800 |
|---|---|---|
| committer | 1992414357@qq.com <1992414357@qq.com> | 2025-06-13 19:20:06 +0800 |
| commit | a210ab86ee43dea3b4d9d0f2af5750c5a4adf096 (patch) | |
| tree | 7111a1c93d1f261d097ff0288c8b879db0830085 /apps/client/src/bin/pad.rs | |
| parent | 98dad6afa316b9a44ff76b305520339ddc44c789 (diff) | |
.
Diffstat (limited to 'apps/client/src/bin/pad.rs')
| -rw-r--r-- | apps/client/src/bin/pad.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/client/src/bin/pad.rs b/apps/client/src/bin/pad.rs new file mode 100644 index 0000000..796dea3 --- /dev/null +++ b/apps/client/src/bin/pad.rs @@ -0,0 +1,23 @@ +use bevy::prelude::{App}; +use bevy::DefaultPlugins; +use bevy_tokio_tasks::TokioTasksPlugin; +use tokio::runtime::Builder; +use nogamepads_client::bevy_plugins::plugin_client_app::ClientAppPlugins; + +fn main() { + let mut app = App::new(); + + // Default + app.add_plugins(DefaultPlugins); + + // Bevy Tokio Tasks + app.add_plugins(TokioTasksPlugin { + make_runtime: Box::new(|| Builder::new_multi_thread().enable_all().build().unwrap()), + ..TokioTasksPlugin::default() + }); + + // Client App Plugins + app.add_plugins(ClientAppPlugins); + + app.run(); +} |
