Skip to content

bhaptics/bhaptics-ios

Repository files navigation

bHaptics SDK for Apple devices

This SDK is under beta process so API might change rapidly without notifications. We will soon add other features which are supported by other SDK(Unity/UE4)

tested under XCode 14.1, Swift 5.7

Features

  • Pair/Unpair bHaptics devices
  • Control vibration actuator with position and motor values.

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/bhaptics/bhaptics-ios", .upToNextMajor(from: "0.1.0"))
]

Setup

Add target property (Target > Info) (macOS/iOS)

These two keys are required if your app uses APIs that access Bluetooth peripherals. bHaptics devices are also bluetooth devices and are required the same keys.

img_1.png

macOS(Signing & Capabilities > App Sandbox )

  • Check Bluetooth

img.png

Documentation

Disclaimer

  • This SDK is tested under the Mac computers with Apple silicon.