TrackIR mouse emulation

Post Reply
firefly001
Posts: 1
Joined: Fri Apr 22, 2016 6:44 am
Contact:

TrackIR mouse emulation

Post by firefly001 »

Hi,

I just bought the TrackIR5 and want to integrate it with an application I made. I only need yaw and pitch. I use the track clip, and made sure the 3 reflectors are detected clearly and there are no other reflections.
The easiest way for me to do that is by using the mouse emulation. So I tried the TrackIR mouse emulation program with X-axis set to yaw and Y-axis to pitch. While the indicators in the TrackIR Mouse emulation program move with my head yaw and pitch and are reasonably accurate, the mouse cursor moves around in all directions, although its movements sometimes are clearly related to the yaw and pitch indicator. But the mouse movements and positions are not accurate at all most of the time.

Does anybody know how I can get the accurate yaw and pitch values to my program (maybe via shared memory) or otherwise how I can make the mouse position just as reliable as the yaw/pitch ?
MikeWitham
Posts: 1477
Joined: Mon Nov 04, 2013 10:19 am

Re: TrackIR mouse emulation

Post by MikeWitham »

Hello,

As we advanced our TrackIR line and our Mouse emulation capabilities. We realized that the two were similar, but ultimately different technologies. They were split into the SmartNav line for mouse control and the TrackIR line continued on for gaming and simulations. The TIRMouse.exe hasn't changed, but because it is not the primary focus of the device, it has not been updated to work with newer software applications. The mouse emulation should work on the desktop, by going to the install location of your TrackIR and selecting TIRMouse.exe it should allow you some mouse emulation. The best tool we have for mouse emulation, is the SmartNav product line. TIRMouse.exe at this point is included mainly for users who have older applications that require it and nothing more.

Regards,
Mike Witham
TrackIR Product Manager
stefil
Posts: 2
Joined: Thu Nov 06, 2025 11:50 am

Re: TrackIR mouse emulation

Post by stefil »

Hi,

I got inspired by a post in empyrion chat on steam.

You can get 2 axis with Track IR (turning head) with good mouse emulation :

TrackIR software + FreePIE

- Use TrackIR soft as usual
- Download and install FreePIE
https://andersmalmgren.github.io/FreePIE
- Open and launch following python script in FreePIE (respect indentation)

Code: Select all

 
#Use Z to toggle on/off [DISABLED:and right mouse to activate head tracking]
#(Good for games like EMPYRION)
deltaYaw = 0
def update():
    global deltaYaw
   
    cur_yaw = trackIR.yaw
    deltaYaw = filters.delta(cur_yaw)
   
    if cur_yaw > threshold:
        deltaYaw += (cur_yaw - threshold) / 75 #.6
    elif cur_yaw < -threshold:
        deltaYaw -= -(cur_yaw + threshold) / 75 #.6
    #diagnostics.watch(origin_yaw)
   
    deltaPitch = filters.delta(trackIR.pitch)
    
    if (enabled):
        mouse.deltaX = deltaYaw*multiply_x
        mouse.deltaY = -deltaPitch*multiply_y
       
if starting:
    enabled = True
    multiply_x = 15
    multiply_y = 15
    trackIR.update += update
    threshold = 45
      
toggle = keyboard.getPressed(Key.Z)

if toggle:
    enabled = not enabled
stefil
Posts: 2
Joined: Thu Nov 06, 2025 11:50 am

Re: TrackIR mouse emulation

Post by stefil »

Successfully used with this game for eg.

Taxi Life: A City Driving Simulator

Should work with all games having a mouse oriented head orientation.
For this one developers will not add native TrackIR support

https://store.steampowered.com/app/1351 ... Simulator/
https://www.youtube.com/watch?v=GyeuTfaw7Y0
Post Reply