We are working on a project for Microsoft Surface Pro 4 where we want to detect the pen input. The goal is to draw lines on the screen and track the pen info over time.
We integrated the Windows.UI.Input.Inking.dll in the Asset folder, but were unable to use it in the code for the scripts. We tried many different settings for the project including the full installation of WUP, project references to the dll, without success. From our research on internet, it does not seem to be supported by the current version of Unity.
Still, we continue to think that there is or should be a way to do it. So, does anyone know how to detect the pen inputs or could officially confirm that it is not possible to do so specifically in the case of a Unity project?
*Note that we were able to use the dll in non-Unity project.
*More info: Trying to reference the dll regardless of file location gives the following warning: CS8034 Unable to load Analyzer assembly C:\Windows\syswow64\Windows.UI.Input.Inking.dll: PE image doesn't contain managed metadata. The same goes for Windows.UI.dll.
↧