gc-adapter
A Rust library for working with the Nintendo Gamecube Controller Adapter
Example
use GcAdapter;
// get adapter from global context
let mut adapter = from_usb.unwrap;
// refresh inputs to ensure they are up to date
adapter.refresh_inputs;
// read and display all controller ports
dbg!;
// enable rumble for only ports 1 and 4
adapter.set_rumble;
sleep;
// on drop all rumble will be disabled and the USB connection
// will be cleaned up
let _ = adapter;