1.3.0 • Published 10 months ago

haptic-feedback-swift v1.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

HapticFeedback in Swift

Generate haptic feedback on the trackpad without delay in MacOS via NodeJS.

Installation

  npm i haptic-feedback-swift

Example

  const { HapticFeedback } = require('haptic-feedback-swift')
  const hapticFeedback = new HapticFeedback()
  
  //Trigger
  hapticFeedback.trigger()

  //Feedback Pattern: NSHapticFeedbackManager.FeedbackPattern
  hapticFeedback.trigger('alignment')

  //Example
  while(true) {
      hapticFeedback.trigger('levelChange')
  }

Documentation

developer.apple.com - NSHapticFeedbackManager.FeedbackPattern

1.3.0

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago