力反馈笔记

安装Touch_Device_Driver_2017.11.30.exe 后运行 Touch Smart Setup进行配对
搜索Haptic Plugins 下载SDK
将SDK中Plugins文件夹移动到最外层
在Touch_Device安装路径下找到hd.dll 和hl.dll放到x64中,打包发布时需要将Build Settings 中Architecture 选择为x86_64 进行编译dll文件,否则发布后不能使用力反馈硬件

常用API
PluginImport.GetButtonState(1,2)
PluginImport.GetButton2State()

猜你喜欢

转载自www.cnblogs.com/what-lee/p/9723846.html
今日推荐