View Single Post
  #3  
Old 10-14-2008, 08:22 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Forgot to mention one important thing. You will also need to simulate mouse movement using the following code:
Code:
win32api.mouse_event(win32con.MOUSEEVENTF_ABSOLUTE,int(65535*x),int(65535*(1.0-y)),0)
The x,y values represent the normalized screen coordinates, which should be equal to the IR position of the wiimote, assuming you are in fullscreen mode.
Reply With Quote