Skip to content

BigWavelet/go-minitouch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

This is a minitouch library written based on golang.

Usage

you can fetch the library by

go get github.com/openatx/go-minitouch

Main Interface

NewService() //new minitouch service

Install() // install minitouch

Start() //start minitouch service

Click(x, y) //tap position (x, y)

Swipe(sx, sy, ex, ey) //swipe from (sx,sy) to (ex,ey)

/*
For more general interface, refer to Operation
@Parameters:
    action: action type, including d(press down), m(mvoe), u(press up)
    index: action index, for single touch, action should be 0; for multi-touch: index should be 0, 1, 2...
    posX: action position x axis
    posY: action posstion y axis

@ Eg.:
    m.Operation("d", 0, 100, 500)
    m.Operation("m", 0, 300, 500)
    m.Operation("m", 0, 500, 500)
    m.Operation("m", 0, 650, 500)
    m.Operation("m", 0, 750, 500)
    m.Operation("m", 0, 850, 500)
    m.Operation("m", 0, 950, 500)
    m.Operation("m", 0, 1050, 500)
    m.Operation("u", 0, 1050, 500)
*/
Operation(action, index, posX, posY)

For more information, please refer to the demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 90.8%
  • HTML 9.1%
  • Shell 0.1%