[][src]Struct mwatch_kernel_lib::system::input::InputManager

pub struct InputManager { /* fields omitted */ }

Input manager, assumes control over the tsc peripheral and handles the raw inputs

Methods

impl InputManager[src]

pub fn new(tsc: TscManager) -> Self[src]

Creates a new instance of the InputManager

pub fn start_new(&mut self) -> Result<(), Error>[src]

pub fn process_result(&mut self) -> Result<(), Error>[src]

pub fn update_input(&mut self, active: bool)[src]

Update thes the internal state of the manager with the raw hardware input

pub fn output(&mut self) -> Result<InputEvent, Error>[src]

Based on the current state of the inputmanager's internal vector, produce an output

pub fn threshold(&self) -> u16[src]

returns the threshold value required to identify a touch

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self