- Home /
Using Wacom Pen as Input Device
Hey,
I have a scene that uses mouse input to navigate a 3D scene. It works like navigating a 3D viewport in Maya i.e. left-click + alt = rotate, middle-click + alt = pan, right-click + alt = zoom. This is working very well.
My issue is that if a wacom tablet is used as the input instead of a mouse, the rotate, zoom and pan motions no longer work. From my understanding, a wacom uses absolute positioning where as a mouse uses relative and Unity works with relative positioning such as with mice and gamepads. I am thinking, I can apply offsets to convert the absolute position of the wacom pen, but I'm not sure if this will actually work.
Has anyone had any experience getting a wacom pen to work as an input device in their game?
Thanks,
Wes
I've gotten a bit closer on this. I need to use mousePosition as this is relative positions and will work with Wacom Pen Input.
I now have the rotation working using...
xDeg = -(Screen.width / 2 - Input.mousePosition.x) inputSpeed xSpeed;//absolute coordinates - works mouse/wacom yDeg = (Screen.height / 2 - Input.mousePosition.y) inputSpeed ySpeed;//absolute coordinates - works mouse/wacom
The issue is that each time I click, a rotation is set to the mousePosition ins$$anonymous$$d of offset from the last rotation.
You could try storing the last rotation in a variable
Answer by eternalfiresong · Dec 07, 2011 at 09:58 AM
While I don't have an answer right now, I do have a comment! I have also run into this issue - using left click to = rotate, right click to = zoom, and middle click to = pan (no alt key necessary, as we are only worried about model interaction right now.)
The interesting part - on a Mac, the wacom tablet is accepted as an input device until you use an exterior mouse (or track pad on a MacBook). After that, the tablet no long is accepted as an input device. No special coding needed at first.
On a windows machine, the table is not recognized at all. (This is the part that is driving me insane.) Have you had any further success with using the tablet as an input device?
Have you found a method for getting the tablet to work as an input device on windows computers? I'm highly interested in this
Answer by zoegirl · May 19 at 05:11 AM
I have the same problem with my Wacom (on Mac) --though I notice that the Option / R click to zoom works somewhat in wireframe - very slowly,... where as it doesn't work at all in shaded mode.
Your answer
Follow this Question
Related Questions
TextMeshPro Dropdown navigation gamepad problem 0 Answers
How to override BaseInput for UI? 1 Answer
How can I control UI navigations with Release only interaction with new input system ? 0 Answers
Unity Input - Keep button pressed while key is pressed 0 Answers
Ignore Clicks on MobileJoysticks? 0 Answers