Last active
July 1, 2021 14:19
-
-
Save kubeliv/117b2dcd7c1c4244ffc835bdd8b40ba6 to your computer and use it in GitHub Desktop.
Swift script to consistently vibrate the MacBook touchpad - Updated to macOS 10.13
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
import AppKit | |
var i = 1; | |
while i <= 5000 { | |
NSHapticFeedbackManager.defaultPerformer.perform(NSHapticFeedbackManager.FeedbackPattern.alignment, performanceTime: NSHapticFeedbackManager.PerformanceTime.now); | |
i = i + 1 | |
usleep(10000000 / 10000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment