pub trait Touch<'a> {
    fn enable(&self) -> Result<(), ErrorCode>;
    fn disable(&self) -> Result<(), ErrorCode>;
    fn set_client(&self, touch_client: &'a dyn TouchClient);
}
Expand description

Single touch panels should implement this

Required Methods

Enable the touch panel

returns Ok(()) even if device is already enabled

Disable the touch panel

returns Ok(()) even if device is already disabled

Set the touch client

Implementors