Repository navigation
Releases: bhaptics/tact-cpp2
Releases · bhaptics/tact-cpp2
Release list
bHaptics C/C++ SDK 2.7.1
The bHaptics C/C++ SDK, now packaged as a self-contained sdk/ folder with a CMake package, 32-bit Windows and macOS libraries, and runnable examples.
Download
bhaptics-cpp-2.7.1.zipcontains only the SDK (include/,lib/,cmake/,README.md,THIRD_PARTY_NOTICES.txt). Extract it and point CMake at it with-Dbhaptics_DIR=<extracted>/cmake, or followREADME.mdinside for Visual Studio without CMake.- Source code gives you the whole repository, including the examples.
| Platform | Architectures |
|---|---|
| Windows 10 / 11 | x64, x86 |
| macOS 10.12 or later | Apple silicon + Intel (universal, signed and notarized) |
Highlights
- Windows x86 and macOS libraries, next to Windows x64.
- CMake package:
find_package(bhaptics 2.7 CONFIG REQUIRED)→bhaptics::bhaptics, picking x64 or x86 to match your build. - Examples:
hello.c,play_events.cpp(strength, speed, rotation, offset, looping) andmotor_control.cpp(playDot,playPath). - Functions for setups with several devices of the same type:
playWithStartTimeToDevice,playLoopToDevice,playDotToDevice,playPathToDevice. bHapticsShutdown()to call before unloading the library (plugins, mods).BHAPTICS_VERSION_*macros. The header pins__cdeclon Windows and is plain ASCII.
See CHANGELOG.md for the full list.
Upgrading from the previous version
Rebuild your application; replacing the DLL alone is not enough. Changes:
#include "library.h"→#include <bhaptics/bhaptics.h>pause→pauseEventreInitMessage→retryInitializeresumereturnsvoidplayWaveformis removed from the headerbHapticsGetHapticMessage/bHapticsGetHapticMappingstakeint32_t* status
See Migrating from the previous version.
Checksums (SHA-256)
ae5e256f504e98ab795411a44aeec1be9d208c84cd37e074be55fce6a0fcfe3a bhaptics-cpp-2.7.1.zip
399992988dc899173e921be23409bed6dc8e7e0cbe78f505452f311fead06b26 lib/x64/bhaptics_library.dll
ff769c111f4c06bfd7b41925c8e428c88e1b415bb332212d3d3d8f0542396332 lib/x64/bhaptics_library.lib
ac556983bf429f7d23b9416111d73070bcce9806fb3730a5af1cc2e9a6f49b41 lib/x86/bhaptics_library.dll
845a4062133882ac66e092b6d114de4ed4678864318b24717a42f958ee038ca0 lib/x86/bhaptics_library.lib
0afb299e9d242e1c1745a56744708c305789edc0a80acdf6d4d45abbfa6d66c9 lib/libbhaptics_library.dylib
Use of the bHaptics SDK is subject to the bHaptics SDK agreement.