Page 1 of 1

Something is wrong in my ios VR app but dońt know what

Posted: Fri Oct 31, 2014 5:30 am
by LinkOS
Hi everybody. Its my first post on the forum (I just discover the site) and before to say anything I'm so sorry if my english language is not perfect (I'm french).

I'va made a little iOS app that take the gyroscope values and send it over tcp

After that I've made a tcp server script in python that fetch the values and use pyMouse for transform values in mouse mouvements.

It work very well and move the mouse acording to the accelerometer values, but it only work on the desktop. When I run a game the mouse move but the view of the game don't move :(

Do you know if it sa limitation of pyMouse ? Or something I miss?



LinkOS

Re: Something is wrong in my ios VR app but dońt know what

Posted: Fri Oct 31, 2014 8:27 pm
by cybereality
Sorry, but I don't know much about Python.

I wrote a mouse emulator in C++ for the Vuzix HMDs a while ago. You can find the source code here:

http://www.mtbs3d.com/phpbb/viewtopic.p ... 40#p103579

Basically it just uses the Windows function SendMessage() to fake mouse motions.

I'd imagine you could get it to work in Python as well. Maybe it is an issue of absolute versus relative position?

Re: Something is wrong in my ios VR app but dońt know what

Posted: Sat Nov 01, 2014 2:08 am
by LinkOS
:arrow: thx for your response. I'll look at your C++ code

yeah perhaps a problem with relative/absolute, i'll look about that ;)