-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant conversions and pass raw data
- Loading branch information
Showing
13 changed files
with
74 additions
and
167 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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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,53 @@ | ||
// | ||
// OpenMTPublic.h | ||
// MiddleMe | ||
// | ||
// Created by Mikhail Vyrtsev on 11.09.2023. | ||
// | ||
|
||
#ifndef OpenMTPublic_h | ||
#define OpenMTPublic_h | ||
|
||
typedef struct { | ||
float x; | ||
float y; | ||
} MTPoint; | ||
|
||
typedef struct { | ||
MTPoint position; | ||
MTPoint velocity; | ||
} MTVector; | ||
|
||
enum { | ||
MTTouchStateNotTracking = 0, | ||
MTTouchStateStartInRange = 1, | ||
MTTouchStateHoverInRange = 2, | ||
MTTouchStateMakeTouch = 3, | ||
MTTouchStateTouching = 4, | ||
MTTouchStateBreakTouch = 5, | ||
MTTouchStateLingerInRange = 6, | ||
MTTouchStateOutOfRange = 7 | ||
}; | ||
|
||
typedef int MTTouchState; | ||
|
||
typedef struct { | ||
int frame; | ||
double timestamp; | ||
int identifier; | ||
MTTouchState state; | ||
int fingerId; | ||
int handId; | ||
MTVector normalizedPosition; | ||
float total; //total of capacitance | ||
float pressure; | ||
float angle; | ||
float majorAxis; | ||
float minorAxis; | ||
MTVector absolutePosition; | ||
int field14; | ||
int field15; | ||
float density; //area density of capacitance | ||
} MTTouch; | ||
|
||
#endif /* OpenMTPublic_h */ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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