Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Add Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SnoutBug committed Nov 20, 2023
1 parent 84ca876 commit 2ae95c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions multitouch.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func createMultiTouch(path string, name []byte, minX int32, maxX int32, minY int
Absmax: absMax})
}

// The contact will be held down at the coordinates specified
func (c multiTouchContact) TouchDownAt(x int32, y int32) error {
var events []inputEvent

Expand Down Expand Up @@ -167,6 +168,7 @@ func (c multiTouchContact) TouchDownAt(x int32, y int32) error {
return c.sendAbsEvent(events)
}

// The contact will be raised off of the surface
func (c multiTouchContact) TouchUp() error {
c.tracking_id = -1
return c.sendAbsEvent(nil)
Expand Down

0 comments on commit 2ae95c1

Please sign in to comment.