Function dualshock3::read_controller [−][src]
pub fn read_controller(
controller_handler: Box<dyn ControllerHandler + Send + Sync>
) -> StoppableHandle<()>
Takes a sink where controller updates will be put. Controller values are read from the HIDAPI. This function takes care of waiting for a controller to connect and automatically reconnects if the controller is disconnected.