目前只支持手写笔获取压力值。根据touchEvent的属性可以日志打印pressure获取压力值,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-touchevent-0000001815087718-V5接口使用文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-universal-events-touch-0000001834531474-V5针对设备情况:当前force范围只支持tablet,2in1设备类型暂不支持。
目前只支持手写笔获取压力值。根据touchEvent的属性可以日志打印pressure获取压力值,参考文档:
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-touchevent-0000001815087718-V5
接口使用文档:
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-universal-events-touch-0000001834531474-V5
针对设备情况:当前force范围只支持tablet,2in1设备类型暂不支持。