1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Touch-side support types for the CYD's `cyd` device abstraction.
//!
//! Applications read calibrated, oriented events via [`TouchEvent`]. Device
//! Envoy's platform implementations connect raw controller samples to the
//! private calibration workflow. Applications use
//! [`CydTouch`](super::CydTouch); see its
//! [example](super::CydTouch::try_read).
pub
pub
pub
use Point;
/// A touch event in logical display coordinates (already calibrated and oriented).
///
/// Read it with [CydTouch::try_read](super::CydTouch::try_read) in the
/// [focused example](super::CydTouch::try_read), or see the larger
/// [application example](../index.html#application-example) for a complete
/// read-and-draw flow. Applications receive coordinates bounded by
/// [`CydDisplay::screen_size()`](super::CydDisplay::screen_size) and must not
/// apply another orientation mapping.
/// Calibration remains defined against the fixed `320×240` landscape panel
/// internally; the platform touch implementation maps the result into the
/// runtime display orientation before returning it.
/// A raw XPT2046 touch sample used internally by calibration.
pub