PSMove as Gyration Mouse or Lightgun?

Official forum for open source FreePIE discussion and development.
Post Reply
zeeker
One Eyed Hopeful
Posts: 3
Joined: Fri Dec 20, 2013 12:58 am

PSMove as Gyration Mouse or Lightgun?

Post by zeeker »

:lol:
Hi, thanks for this fantastic and useful tool, FreePie allow us test and experiment many crazy and strange ideas, in games, emulation, and VR software.

I'm playing with the PSMove plugin, i'm very curious with these two questions?

First:
If i want to emulate a gyration mouse with the PSMove, how i can improve this script?

Code: Select all

def trackMouse():
	global deltax
	global deltay
	deltay = filters.simple( filters.delta( psmove[0].roll ), 0.0 )
	deltax = filters.simple( filters.delta( psmove[0].pitch ), 0.0)

trackMouse()

if psmove[0].getDown(MoveButton.MOVE) :
	mouse.deltaX = deltax * 750
	mouse.deltaY = deltay * 500

Second:
With the PSMove functions in FreePie, it's possible emulate an arcade or console lightgun, using the light sphere tracking.
How could be the script to emulate that?
Post Reply

Return to “FreePIE”