node-mac-recorder 2.22.12 → 2.22.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cursor_tracker.mm +7 -0
package/package.json
CHANGED
package/src/cursor_tracker.mm
CHANGED
|
@@ -2164,6 +2164,13 @@ void cursorTimerCallback() {
|
|
|
2164
2164
|
cursorType = @"default";
|
|
2165
2165
|
}
|
|
2166
2166
|
|
|
2167
|
+
// Timer-only mod: CGEventTap yokken kCGEventKeyDown gelmez; caret satırları hiç yazılmazdı.
|
|
2168
|
+
// I-beam görünürken AX ile periyodik textInput üret (emitTextInputEvent içinde throttle var).
|
|
2169
|
+
if ([cursorType isEqualToString:@"text"] ||
|
|
2170
|
+
[cursorType isEqualToString:@"vertical-text"]) {
|
|
2171
|
+
emitTextInputEvent(timestamp, unixTimeMs, location);
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2167
2174
|
// Mouse button state polling — event tap olmadığında click/drag tespiti
|
|
2168
2175
|
bool currentLeftMouseDown = CGEventSourceButtonState(kCGEventSourceStateHIDSystemState, kCGMouseButtonLeft);
|
|
2169
2176
|
bool currentRightMouseDown = CGEventSourceButtonState(kCGEventSourceStateHIDSystemState, kCGMouseButtonRight);
|