It is currently Sat May 25, 2013 8:12 am



Reply to topic  [ 4 posts ] 
 Absolute Mouse Position 
Author Message
One Eyed Hopeful
User avatar

Joined: Tue Apr 16, 2013 7:25 pm
Posts: 5
I'm trying to get the Hydra to act like a lightgun and want to put the mouse cursor where the hydra is facing on the screen, but with freepie I can just set the deltax/y.
I'm didn't read into python and its librarys, but it seems that I can't find a easy solution to do that.


Thu Apr 18, 2013 4:27 pm
Profile
Certif-Eyable!

Joined: Fri Jul 08, 2011 11:47 pm
Posts: 1182
You could easily use Hydra in mouse mode to APPROXIMATE this. However, since there is no calibration between the Hydra and your screen distance, the chance that the Hydra would exactly line up with the cursor, and stay there if you moved around, forwards/backwards, etc, is pretty non existent.

Do you really need the Hydra to 'point' at the cursor, or do you just want absolute mouse control by moving the Hydra around within a box sized area?


Thu Apr 18, 2013 8:08 pm
Profile
One Eyed Hopeful
User avatar

Joined: Tue Apr 16, 2013 7:25 pm
Posts: 5
I want to calculate the intersectingpoint from the pointingdirection of the hydra with the screen.
I have the screendimensions and the position relative to the base station.

I-x--------I Screen
....\
.....\ O Base
......\
.......\\ Hydra


Fri Apr 19, 2013 4:32 am
Profile
Sharp Eyed Eagle!

Joined: Sun Mar 25, 2012 12:33 pm
Posts: 457
Huh, you can do absolute mouse position in Java with the awt.robot library...But I don't know if you can get FreePIE to interface like that.


Thu Apr 25, 2013 7:18 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.