Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Eli Elhadad · Sep 14, 2010 at 09:48 AM · positionmousekinect

external cursor control

here at Omek Interactive we are developing depth camera based game (just like kinect, but on other platforms then 360)

we have successfully integrated our SDK into unity (full body skeleton tracking and other cool stuff)

one of our very cool features is controlling the mouse with our hands unfortunately we have discovered that unity does not provide a way for developers to set the mouse position

my question is:

is there a way to do so (i have already voted for this feature) i know that the wii is doing something similar with pointing at the screen

i don't want to develop a custom cursor because i will loose all the mouse/GUI integration

thanks in advance Eli

Comment
Add comment · Show 3
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 Eli Elhadad · Sep 15, 2010 at 07:03 AM 0
Share

thanks for the answer. for now, i am developing on windows so i used the: [DllImport("user32.dll")] static extern bool SetCursorPos(int X, int Y); and it works fine. my next step is to do the same for the android OS

avatar image abdulthegamer · Jul 06, 2014 at 07:25 AM 0
Share

Hi, I m very much interested on working on Omek using Unity. Can You please provide me the SD$$anonymous$$ and unitypackage..? Please i need it urgently.. Any help will be appreciated

Regards, Abdul

avatar image Bunny83 · Jul 06, 2014 at 07:50 AM 0
Share

@abdulthegamer: That sounds like you want that SD$$anonymous$$ for free... Omek interactive is (was) a company and i'm pretty sure they wouldn't give their products away for free...

Also Omek Interactive was aquired by Intel so don't expect to get anything without paying.

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by jonas-echterhoff · Sep 14, 2010 at 02:45 PM

If you are targeting mac/windows standalones, you could write a C++ plugin to solve this. On the Mac, the function to use to move the mouse cursor is CGWarpMouseCursorPosition(), not sure about windows, but there has to be something similar.

For the web games, we will not likely allow games to move the cursor, as there is a high potential for abuse.

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 skovacs1 · Sep 14, 2010 at 03:29 PM 0
Share

On Windows you could try SetCursorPos (http://msdn.microsoft.com/en-us/library/ms648394%28VS.85%29.aspx). Haven't tried it myself, but it seems like the Windows equivalent of CGWarp$$anonymous$$ouseCursorPosition.

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

2 People are following this question.

avatar image avatar image

Related Questions

Checking if mouse dragged from one point to another 2 Answers

Move object towards mouse position 1 Answer

How To Drag any Cube Using Mouse Click and Moved Only 1 Unit?? 2 Answers

Problems at using touch and buttons inputs,Problems at using touch input on Android 1 Answer

Get Mouse Position GUI 3 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