A Pinput extended gamepad tester written in Rust for the WASM-4 fantasy console.
Build the cart by running:
cargo build --release
Then run it with:
w4 run-native target/wasm32-unknown-unknown/release/pinput_tester.wasm
(Note that Pinput is not yet available for the web runtime, so you need to use run-native
instead of run
.)
Launch a WASM-4-enabled Rust build of Pinput. The waiting for Pinput connection...
message from the tester cartridge should disappear and be replaced with a visualization of the state of the first connected gamepad.