- Home /
Microsoft Surface Pen working in editor, but not build
Hey folks,
I'm currently building something for the Surface Pro 4 that requires pen input.
In the editor, the pen acts as a mouse, and input works through Input.GetMouseButton(0). In the PC build however, the pen doesn't seem to be supported at all. UI elements don't respond to pen taps like they do in the editor, nor do raycasts from mouse position.
Does anyone know how I can get the Surface to register pen input?
Cheers, Zaeran
Seems like it is not possible for now. You can vote here: https://feedback.unity3d.com/suggestions/add-support-for-pcs-with-pen-slash-touch-screen-interfaces
Answer by Zaeran · Dec 22, 2017 at 08:48 AM
For those in the future looking for the answer -> It only works if you build a UWP app, not a desktop one. It's not ideal, but if pen is important, that seems to be the only way
Your answer
Follow this Question
Related Questions
How to integrate Windows.UI.Input.Inking.dll used for pen input with Microsoft Surface Pro? 0 Answers
Microsoft Surface Pen Not Working in Unity Player? 3 Answers
How to let Unity recognize Saumsung S-pen input as Touch input rather than Mouse Click 1 Answer
Xbox One Controller works with Windows 10, but not Xbox One. 1 Answer
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers