pub trait TouchSystem {
fn is_supported(&self) -> bool;
fn max_points(&self) -> i32;
fn down_signal(&self) -> &Signal1<TouchPoint>;
fn move_signal(&self) -> &Signal1<TouchPoint>;
fn up_signal(&self) -> &Signal1<TouchPoint>;
fn points(&self) -> Vec<TouchPoint>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
}
Expand description
Functions related to the environment’s touch screen.
Required Methods
fn is_supported(&self) -> bool
fn is_supported(&self) -> bool
True if the environment has a touch screen.
fn max_points(&self) -> i32
fn max_points(&self) -> i32
The maximum number of touch points that can be detected at once.
fn down_signal(&self) -> &Signal1<TouchPoint>
fn down_signal(&self) -> &Signal1<TouchPoint>
Emits a new TouchPoint when a finger presses down on the screen.
fn move_signal(&self) -> &Signal1<TouchPoint>
fn move_signal(&self) -> &Signal1<TouchPoint>
Emits the modified TouchPoint when a finger changes position.
fn up_signal(&self) -> &Signal1<TouchPoint>
fn up_signal(&self) -> &Signal1<TouchPoint>
Emits the removed TouchPoint when a finger is raised from the screen.