Skip to content

Commit

Permalink
add unixmorph.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Thompson committed Dec 30, 2023
1 parent 8837869 commit cad09bf
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions kit/unixmorph.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//go:build unix
// +build unix

package kit

type oneMorph struct {
idx uint8
opened bool
serialNum string
width float32
height float32
fwVersionMajor uint8
fwVersionMinor uint8
fwVersionBuild uint8
fwVersionRelease uint8
deviceID int
morphtype string // "corners", "quadrants", "A", "B", "C", "D"
currentTag string // "A", "B", "C", "D" - it can change dynamically
previousTag string // "A", "B", "C", "D" - it can change dynamically
contactIdToGid map[int]int
}

var morphMaxForce float32 = 1000.0

var allMorphs []*oneMorph

// StartMorph xxx
func StartMorph(callback CursorCallbackFunc, forceFactor float32) {
LogInfo("StartMorph (unix) called")
}

// CursorDown etc match values in sensel.h
const (
CursorDown = 1
CursorDrag = 2
CursorUp = 3
)

func (m *oneMorph) readFrames(callback CursorCallbackFunc, forceFactor float32) {
LogInfo("readFrames called")
}

0 comments on commit cad09bf

Please sign in to comment.