touchpad振动功能

志鹏 叶 20 Reputation points
2023-08-01T05:31:00.4033333+00:00

这边touchpad需要实现振动,请问有标准的接口吗?SimpleHapticsController是否支持touchpad。

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. S.Sengupta 24,476 Reputation points MVP
    2023-08-02T01:12:22.7933333+00:00

    The SimpleHapticsController is an API provided by Microsoft for developers to implement haptic feedback in Windows applications. However, the API itself is not specific to touchpad support; instead, it is designed to work with a variety of input devices that support haptic feedback, such as game controllers, touchscreens, and touchpads.

    Verify that the target device, such as a touchpad, supports haptic feedback and is compatible with the SimpleHapticsController API. Not all touchpads might have haptic feedback capabilities.


  2. Anonymous
    2023-08-02T07:34:11.1266667+00:00

    Hi.

    您可以尝试使用Simple Haptic Controller的UUID来查找设备,然后使用VibrationDevice.FromIdAsync方法来获取设备实例。如果您的设备支持振动,那么您应该能够获取到设备实例。如果您仍然无法获取设备实例,您可以尝试检查设备是否已正确连接并且已启用振动功能。

    Hope the information is helpful.

    Best Regards,

    Hania Lian

    ============================================
    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.