-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim Thompson
committed
Dec 30, 2023
1 parent
8837869
commit cad09bf
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
|