项目
在 GitHub 查看 
Kyome22/OpenMultitouchSupport
关于
This enables you easily to access raw data of the multitouch trackpad.
其他项目实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文OpenMultitouchSupport
This enables you easily to observe global multitouch events on the trackpad (only default device).
I created this library to make MultitouchSupport.framework (Private Framework) easy to use.
References
This library refers the following frameworks very much. Special Thanks!
Requirements
- Development with Xcode 26.2+
- swift-tools-version: 6.2
- Compatible with macOS 15.0+
Demo

Usage
App SandBox must be disabled to use OpenMultitouchSupport.
import OpenMultitouchSupport
let manager = OMSManager.shared()
Task { [weak self, manager] in
for await touchData in manager.touchDataStream {
// use touchData
}
}
manager.startListening()
manager.stopListening()
The data you can get are as follows
struct OMSPosition: Sendable {
var x: Float
var y: Float
}
struct OMSAxis: Sendable {
var major: Float
var minor: Float
}
enum OMSState: String, Sendable {
case notTouching
case starting
case hovering
case making
case touching
case breaking
case lingering
case leaving
}
struct OMSTouchData: Sendable {
var id: Int32
var position: OMSPosition
var total: Float // total value of capacitance
var pressure: Float
var axis: OMSAxis
var angle: Float // finger angle
var density: Float // area density of capacitance
var state: OMSState
var timestamp: String
}
探索相关项目
加载中…