Hello, @youki
If you want to know whether the input comes from the touchpad, you can use GetCurrentInputMessageSource to retrieve the source of the input message.
The INPUT_MESSAGE_SOURCE structure that holds the device type and the ID of the input message source.
typedef enum tagINPUT_MESSAGE_DEVICE_TYPE {
IMDT_UNAVAILABLE,
IMDT_KEYBOARD,
IMDT_MOUSE,
IMDT_TOUCH,
IMDT_PEN,
IMDT_TOUCHPAD
} INPUT_MESSAGE_DEVICE_TYPE;
Note: [Windows 8 desktop apps only
----------
Thank you!
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.