- Home /
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
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
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
@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.
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.
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
Follow this Question
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