tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/touch/point.go (about) 1 package touch 2 3 // Pointer is a device that is capable of reading a single touch point 4 type Pointer interface { 5 ReadTouchPoint() Point 6 } 7 8 // Point represents the result of reading a single touch point from a screen. 9 // X and Y are the horizontal and vertical coordinates of the touch, while Z 10 // represents the touch pressure. In general, client code will want to inspect 11 // the value of Z to see if it is above some threshold to determine if a touch 12 // is detected at all. 13 type Point struct { 14 X int 15 Y int 16 Z int 17 }