Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by The 3D Ninja · Jul 16, 2011 at 02:56 PM · inputnavigationmayapen

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

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image The 3D Ninja · Jul 16, 2011 at 08:18 PM 0
Share

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.

avatar image sacredgeometry · Aug 11, 2011 at 05:51 PM 0
Share

You could try storing the last rotation in a variable

2 Replies

· Add your reply
  • Sort: 
avatar image
0

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?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MaeniAck · Jan 10, 2013 at 01:37 AM 0
Share

Have you found a method for getting the tablet to work as an input device on windows computers? I'm highly interested in this

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

TextMeshPro Dropdown navigation gamepad problem 0 Answers

How to override BaseInput for UI? 1 Answer

Unity Input - Keep button pressed while key is pressed 0 Answers

How can I control UI navigations with Release only interaction with new input system ? 0 Answers

Ignore Clicks on MobileJoysticks? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges