Add Windows Touch Mode, per-digitizer calibration, and HID event logging - #23
Open
Jac0b-Shi wants to merge 1 commit into
Open
Add Windows Touch Mode, per-digitizer calibration, and HID event logging#23Jac0b-Shi wants to merge 1 commit into
Jac0b-Shi wants to merge 1 commit into
Conversation
## Windows Touch Mode - New "Windows Touch Mode" toggle in Settings → Gestures - Tap-to-click: first tap moves cursor, second tap at same position clicks - Double-tap produces double-click (via existing cursorClickCount infrastructure) - Long press triggers secondary click (right-click) - One-finger drag performs mouse drag instead of scrolling - Two-finger drag scrolls instead of dragging - Uses `hypot()` for correct Euclidean double-click distance check (fixes a bug where the original `&&` required both axes to exceed tolerance) ## Per-Digitizer Calibration - New `TouchCalibration` struct: 6-parameter affine transform (a,b,c,d,e,f) - Least-squares fitting via 3x3 Gaussian elimination (min 3 sample points) - 9-point calibration UI in Debug Overlay with real-time error feedback - Calibration is persisted per-digitizer in `UserDefaults` - `TUCTouchDelegate` gains optional `-calibratedRelativePoint:forLocationID:` ## HID Event Logging - `SetHIDEventLogging()` in HIDInterpreter for troubleshooting - Structured `os_log_info` output for touch reports - `logCursorEvents` property on TUCCursorUtilities ## Other - Rich device identity in `Digitizer` model (name, vendorID, productID, serialNumber) - Refactored HID non-hybrid touch dispatch into `DispatchNonHybridTouches()`
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Windows Touch Mode
hypot()for correct Euclidean double-click distance check (fixes a bug where the original&&required both axes to exceed tolerance)Per-Digitizer Calibration
TouchCalibrationstruct: 6-parameter affine transform (a,b,c,d,e,f)UserDefaultsTUCTouchDelegategains optional-calibratedRelativePoint:forLocationID:HID Event Logging (optional)
SetHIDEventLogging()in HIDInterpreter for troubleshootingos_log_infooutput for touch reportslogCursorEventsproperty on TUCCursorUtilitiesOther
Digitizermodel (name, vendorID, productID, serialNumber)DispatchNonHybridTouches()