Get finger position on touchpad

前端 未结 2 541
情深已故
情深已故 2020-12-18 01:12

Is there any way to get the location that touch pad is touched? also I need capture module that is able to return such 2D points array map that reports states of touchpad po

相关标签:
2条回答
  • 2020-12-18 01:40

    I know this isn't what you want to hear, but there is no all-inclusive way to do what you want.

    Individual makes and models have their own way of exposing it. For example, I've done some work with Synaptic touchpads (fairly common) which expose a COM interface on Windows. That code won't work on any other touchpads.

    You could find a few common ones and run different code based on which ones the system supports.

    0 讨论(0)
  • 2020-12-18 02:02

    If its a windows app, handle the WM_MOUSEMOVE message , the hiword and loword of the lparam is the x and y coordinates respectively , in reference to client area coordinates.

    0 讨论(0)
提交回复
热议问题