Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.
/ actuator Public archive

Golang library that allows you to actuate your MacBook Force Touch trackpad

License

Notifications You must be signed in to change notification settings

aprosvetova/actuator

Repository files navigation

Actuate your Force Touch trackpad

go.dev reference

Warning! The code relies on private macOS APIs, so no guarantees.

Example

package main

import (
    "github.com/aprosvetova/actuator"
    "time"
)

func main() {
    for {
        actuator.Down(actuator.HapticFeedbackTypeStrong)
        time.Sleep(20 * time.Millisecond)
        actuator.Up(actuator.HapticFeedbackTypeStrong)
        time.Sleep(100 * time.Millisecond)
    }
}

About

Golang library that allows you to actuate your MacBook Force Touch trackpad

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published