Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
gba_rumble
Library for enabling rumble functionality on the Game Boy Advance.
This crate supports rumble through both the cartridge itself using general purpose I/O (GPIO) and the Game Boy Player's rumble functionality. Functionality is provided for detecting available rumble features and using them fully.
The library is designed to be usable regardless of what other GBA development libraries may be in use. It is usable with popular libraries like gba and agb.
Usage
There are two ways to use this library: by using a cartridge's built-in rumble through Gpio and by using the Game Boy Player's rumble functionality through GameBoyPlayer.
Cartridge (GPIO) Rumble
To use a cartridge's built-in rumble through general purpose I/O (GPIO), use the Gpio struct.
let gpio = Gpio;
// Activate the cartridge's rumble. This will continue until `stop()` is called.
gpio.start;
// Deactivate the cartridge's rumble.
gpio.stop;
Game Boy Player
To use the Game Boy Player's rubmle functionality, detect the Game Boy Player by calling GameBoyPlayer::detect() at the beginning of your program.
if let Some = detect
License
This project is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.