Struct gcnctrlusb::Scanner
[−]
[src]
pub struct Scanner { /* fields omitted */ }
Searches for GameCube controller adapter USB devices.
Methods
impl Scanner
[src]
fn new() -> Result<Scanner, Error>
Initializes USB driver connectivity and returns a Scanner
instance.
An error is returned if libusb
is not loaded or driver initialization otherwise fails.
fn find_adapter<'a>(&'a mut self) -> Result<Option<Adapter<'a>>, Error>
Returns the first adapter found, or None
if no adapter was found.