Struct steamy_controller::Controller
[−]
[src]
pub struct Controller<'a> { /* fields omitted */ }
The controller.
Methods
impl<'a> Controller<'a>
[src]
fn is_remote(&self) -> bool
Check if the controller is remote.
fn is_wired(&self) -> bool
Check if the controller is wired.
fn is_connected(&mut self) -> bool
Check if the controller is connected.
fn lizard<'b>(&'b mut self) -> Lizard<'b, 'a> where
'a: 'b,
'a: 'b,
Get the lizard manager.
fn led<'b>(&'b mut self) -> Led<'b, 'a> where
'a: 'b,
'a: 'b,
Get the led manager.
fn feedback<'b>(&'b mut self) -> Feedback<'b, 'a> where
'a: 'b,
'a: 'b,
Get the feedback builder.
fn sensors<'b>(&'b mut self) -> Sensors<'b, 'a> where
'a: 'b,
'a: 'b,
Get the sensor manager.
fn calibrate<'b>(&'b mut self) -> Calibrate<'b, 'a> where
'a: 'b,
'a: 'b,
Get the calibration manager.
fn sound<'b>(&'b mut self) -> Sound<'b, 'a> where
'a: 'b,
'a: 'b,
Get the sound player.
fn timeout(&mut self, value: Duration) -> Res<()>
Set the idle duration before turning off.
fn off(&mut self) -> Res<()>
Turn the controller off.
fn details(&mut self) -> Res<Details>
Fetch the controller details.
fn state(&mut self, timeout: Duration) -> Res<State>
Get the current state of the controller.