Skip to main content

primary_pointer

Function primary_pointer 

Source
pub fn primary_pointer() -> PointerKind
Expand description

The kind of pointer the person is using: touch, mouse or stylus, following the last input (docs/gestures.md “Input kind”). A tracked read, so wording and affordances that depend on it update when an iPad’s trackpad or a laptop’s touch screen comes into use. Before any input it is the platform’s usual kind.