Is there an API to map 'touch' input to a different monitors?

不羁岁月 提交于 2019-12-06 08:47:33

问题


I am trying to achieve the same functionality as multidigimon.exe, that is mapping an input digitizer to a given monitor, I was wondering if there is an API I can access or if the multidigimon.exe supports any parameters I can call it with to automate the mapping process.

So far I have found that multidigimon.exe writes the following registry key

key:20-\\?\hid#&col06#1&4784345&d&0005#{4d1e55b2-f16f-11cf-88cb-001111000030}

value:\\?\DISPLAY#Default_Monitor#5&5e64b29&0&UID268435456#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}

to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wisp\Pen\Digimon


回答1:


I did not find an API; however, I think I know how to do it:

  1. Find the monitor that you want to map the input to via EnumDisplayDevices, we are interestded in the DeviceID,

  2. Find the correct instance of the input device

  3. Write to the following registry key:

    HKLM\\SOFTWARE\\Microsoft\\Wisp\\Pen\\Digimon
    
    • key = [you input device path instances]
    • value = [your monitor device path]
  4. Restart wisptis.exe.



来源:https://stackoverflow.com/questions/2646304/is-there-an-api-to-map-touch-input-to-a-different-monitors

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!