Skip to content

Commit

Permalink
docs: link to apple docs
Browse files Browse the repository at this point in the history
this is mostly to trigger a new build to run the brew stuff
  • Loading branch information
iloveitaly committed May 18, 2023
1 parent 3d0a4ff commit 3dd5a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/hyper-focus/idle_checker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class IdleChecker {
private func systemIdleTime() -> TimeInterval {
// the "anyInputEventType" is NOT defined in swift!
// https://stackoverflow.com/questions/31943951/swift-and-my-idle-timer-implementation-missing-cgeventtype
// https://developer.apple.com/documentation/coregraphics/cgeventsource/1408790-secondssincelasteventtype
let anyInputEventType = CGEventType(rawValue: ~0)!

let idleTimeInMilliseconds = CGEventSource.secondsSinceLastEventType(CGEventSourceStateID.combinedSessionState, eventType: anyInputEventType)
Expand Down

0 comments on commit 3dd5a4b

Please sign in to comment.