Documentation ¶
Index ¶
- Constants
- Variables
- func CoordRotate(x, y int) (nx, ny int)
- func Debug(state bool)
- func Drag(startX, startY int, endX, endY int, steps int, duration time.Duration)
- func GetRawSize(event string) (width, height int, err error)
- func GuessTouchpad() (p string, err error)
- func GuessTouchpadByName() (p string, err error)
- func Init(tpdEvent string) (err error)
- func Move(x, y int)
- func Pinch(Ax0, Ay0, Ax1, Ay1 int, Bx0, By0, Bx1, By1 int, steps int, ...)
- func Press(x, y int)
- func Release()
- func Rotation() int
- func ScreenSize() (width int, height int, err error)
- func ScreenSize2() (w, h int)
- func Snapshot() (img *image.RGBA, err error)
- func Snapshot2() *image.RGBA
- func SnapshotRotated() (dst *image.RGBA, err error)
- func Tap(x, y int, duration time.Duration)
Constants ¶
View Source
const ( ROTATION_0 = iota ROTATION_90 ROTATION_180 ROTATION_270 ROTATION_UNKNOWN )
View Source
const DEV_FB0 = "/dev/graphics/fb0"
Variables ¶
View Source
var SCRBUFLEN int
Functions ¶
func CoordRotate ¶
About: 0.03s Rotate coordinate to rotation_0 Anticlockwise
func GetRawSize ¶
func GuessTouchpad ¶
func GuessTouchpadByName ¶
func ScreenSize ¶
Refrerence code of python-adbviewclient
func Snapshot2 ¶
Snapshot of android phone (by read /dev/fb0) Only ok with few phones, a lot of phone will got blank image.
func SnapshotRotated ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.