Skip to content
/ uni-pad Public

Gamepad wasm32 / native compatibility layer for unrust game engine

License

Notifications You must be signed in to change notification settings

unrust/uni-pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unrust / uni-pad

Build Status Documentation crates.io

This library is a part of Unrust, a pure rust native/wasm game engine. This library provides a native/wasm compatibility layer for following components :

  • Gamepad support

Usage

[dependencies]
uni-pad = { git = "http://github.com/unrust/uni-pad" }

Build

As web app (wasm32-unknown-unknown)

Install wasm32 target :

rustup target install wasm32-unknown-unknown

Install wasm-pack and npm

Compile the demo with

wasm-pack build examples

This creates a wasm package in examples/pkg

Run the demo with

cd www
npm install
npm run start

Open your browser at http://localhost:8080/

As desktop app (native-opengl)

cargo run --example basic --release

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Gamepad wasm32 / native compatibility layer for unrust game engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published