This repository provides the source code for the Haptics Device Driver.
Ensure the following tools and frameworks are installed on your system:
- Visual Studio 2022
- CMake 3.13 or later
- .NET 9.0 SDK or compatible version
- Download and Install Weart Middleware
- Launch the Middleware
To clone the repository, run the following command:
git clone https://github.com/nokiatech/haptics_driver.git
cd haptics_driverRun the following command to configure the project using CMake:
mkdir build
cd build
cmake .. -G "Visual Studio 17 2022"This generates a Visual Studio solution in the build directory.
To build the project, navigate to the build directory and open the solution in Visual Studio:
start Haptics_Device_Driver.slnIn Visual Studio, you can build the project quickly using the shortcut Ctrl + Shift + B.
- Open the solution in Visual Studio.
- Right-click on the project (
Haptics_Device_Driver) and selectManage NuGet Packages.... - Search for
Newtonsoft.Jsonin the NuGet package manager. - Install the latest version of
Newtonsoft.Json.
- In Visual Studio, expand the
Referencessection under theHaptics_Device_Driverproject. - Right-click on
Referencesand selectAdd Reference. - In the
.NET Assembliestab, search forSystem. - Select
Systemand clickOK.
These steps ensure that required dependencies are properly included.
Set the build configuration to Release or Debug and build the solution in Visual Studio.
Alternatively, you can build the project directly from the command line:
cmake --build build --config ReleaseTo clean the build directory, run the following command:
cmake --build build --target cleanAlternatively, you can delete the build folder manually.
After building the project, the DLL file will be located in:
../build/<Configuration>/Haptics_Device_Driver.dll
Replace <Configuration> with Debug or Release, depending on the build configuration you selected.
- Ensure all dependencies are correctly installed before building the project.
- If you encounter issues, refer to the CMake and Visual Studio documentation for troubleshooting tips.
Please see LICENSE.TXT file for the terms of use of the contents of this repository.
All the example media files (*.heic, *.png, *.jpg, *.gif) in this repository are under copyright © Nokia Technologies 2015-2025.
For more information/questions/source code/commercial licensing related issues, please contact: [email protected]