Stb
Stb

Reputation: 171

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

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

Upvotes: 5

Views: 4085

Answers (1)

Stb
Stb

Reputation: 171

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]
  1. Restart wisptis.exe.

Upvotes: 7

Related Questions