怎么让自研触摸板支持SimpleHapticsController接口

志鹏 叶 20 Reputation points
2023-08-15T02:11:22.94+00:00

您好,我这需要做一个触摸板(当前通过BLE连接),请问怎么可以让系统识别到我的触摸板支持振动,我使用VibrationDevice.FindAllAsync接口是返回null,touchapd配置了Simple Haptic Controller。

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,469 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li 8,355 Reputation points
    2023-09-22T10:01:30.9733333+00:00

    Hello

    To make your self-developed touchpad support the SimpleHapticsController interface, you need to ensure that the touchpad hardware itself supports haptic feedback and that the device driver for the touchpad is properly implemented to expose this capability to the operating system.

    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.

    If you’re using the VibrationDevice.FindAllAsync interface and it’s returning null, it could mean that the system does not recognize your device as supporting haptic feedback. This could be due to several reasons:

    The touchpad hardware does not support haptic feedback.

    The device driver for the touchpad does not properly expose the haptic feedback capability to the operating system.

    There might be an issue with how the device is connected or configured.

    Here are some general steps you can take:

    Verify that your touchpad hardware supports haptic feedback.

    Check if the device driver for your touchpad is up-to-date and properly implemented to expose haptic feedback capability.

    Ensure that your device is correctly connected through BLE and that there are no issues with the connection.

    Test your application on a different system or with a different touchpad that is known to support haptic feedback, to rule out any issues with your current system or touchpad.

    0 comments No comments

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.