Struct gcnctrlusb::Scanner [] [src]

pub struct Scanner { /* fields omitted */ }

Searches for GameCube controller adapter USB devices.

Methods

impl Scanner
[src]

Initializes USB driver connectivity and returns a Scanner instance.

An error is returned if libusb is not loaded or driver initialization otherwise fails.

Returns the first adapter found, or None if no adapter was found.