March 6, 201214 yr Author Constant Freelook and View CycleMoving forward from Kolaf's GlovePie Tutorial above, I have edited the script a little more to suit my setup. I don't have TrackIR just a MS Sidewinder Joystick.These tweaks provide the following using the GlovePie software as discussed in Kolaf's tutorial as a base:All views are available from the virtual cockpit.1. Press joy button 3 once to go to left / right / up /down mouselook, press again to enter cockpit freelook. This Joystick button will now toggle between the 2 states.2. Press and hold joy button 1 (trigger) wil change cursor to a clickable one to enable mouseclicks in the cockpit. Releasing will revert back to full freelook.3. Press joy button 4 to switch to outside freelook mode and control the view just by moving the mouse. Clicking same button again will revert to cockpit freelook.4. Press joy button 2 to switch to outside flyby view - not moveable. Press same button again to revert to cockpit freelook.Make sure that any buttons that you use on the joystick mapped to GlovePie are not mapped in FS - otherwise you will have conflicts.Still with me ?I have combined this with my Dynamic Head Movement increase as detailed above.Of couse you can edit the buttons you want to use to correspond with your joystick or flight yoke. Just change the values in GlovePie.Glovepie Script : -----------------------------------------------------------------------------------if Pressed(Joystick.Button3) then if var.look = True then Mouse.MiddleButton = 0 wait 100 ms Mouse.RightButton = 1 else Mouse.RightButton = 0 wait 100 ms Mouse.MiddleButton = 1 end toggle(var.look)endif Pressed(Joystick.Button1) then Mouse.RightButton = 0 Mouse.MiddleButton = 0endif Released(Joystick.Button1) then wait 100 ms Mouse.RightButton = 1endif Pressed(Joystick.Button4) then if var.view = True then key.F11 = 0 wait 100 ms key.F9 = 1 else key.F9 = 0 wait 100 ms key.F11 = 1 end toggle(var.view)endif Pressed(Joystick.Button2) then if var.view2 = True then key.F10 = 0 wait 100 ms key.F9 = 1 else key.F9 = 0 wait 100 ms key.F10 = 1 end toggle(var.view2)end---------------------------------------------------------------------------------This, for me, has improved the experience of "Flight"Hope you like it.Cub 1. Edited March 6, 201214 yr by Cub1
March 7, 201214 yr Guys - this is great! Can't wait to give it a try at some point!...but let's still hope official TrackIR support comes soon!*edit* - Can someone help me out with the scripting part (totally not my area of expertise)? If I just want to toggle mouselook on and off with a single button press (rather than having to hold it down), is this the correct script?if Pressed(Joystick1.Button2) then if var.look = True then Mouse.RightButton = 1 else Mouse.RightButton = 0 end toggle(var.look)end
March 7, 201214 yr Author Guys - this is great! Can't wait to give it a try at some point!...but let's still hope official TrackIR support comes soon!*edit* - Can someone help me out with the scripting part (totally not my area of expertise)? If I just want to toggle mouselook on and off with a single button press (rather than having to hold it down), is this the correct script?if Pressed(Joystick1.Button2) then if var.look = True then Mouse.RightButton = 1 else Mouse.RightButton = 0 end toggle(var.look)end Yes. This works fine - just tried it. A simple on / off switch. I'm still trying to find a way to remove the circle cursor but i think its hard coded.Cub 1.
March 7, 201214 yr I got it working this morning. It took some playing around with the mouse settings in the control panel and TrackIR profiles, but it seems to be working pretty well. I only had a few minutes to try it out when I was done, but during that time I had smooth and repeatable panning with an acceptable range of view, and I didn't need to use "backspace" or anything else to recenter the view after panning; just returning my head to look straight at the screen seemed to work just fine. Here is what I did:Setup:1. Installed GlovePie, entered the script from my post above, and saved it.2. Opened TrackIR and created a new profile (I called it "MouseLook"). For yaw and pitch axis, use "one-to-one" as a template and then use the little green arrows to increase the curve so that you can look back over your shoulder far enough in-game. I used 2 arrow clicks for yaw and 1 arrow click for pitch. Save it.3. While still in TrackIR, go to "Titles" and scroll down to "MouseEmulation." Select the profile you just created and saved as the profile for "MouseEmulation" title.To use TrackIR in Flight:1. Go to your Control Panel -> Mouse and turn off "Enhanced Pointer Precision". This is important and the key to getting repeatable, consistent panning and having the view return to the center when you look straight ahead! You can always turn it back on when you're done flying.2. Open TrackIR.3. Run MouseEmulator.exe in the TrackIR folder.4. Open GlovePie, open your saved script, and hit run.5. Start Flight. Once in the cockpit press whatever joystick button you assigned in GlovePie to activate mouse panning.6. Fly!The initial setup shouldn't take more than 10-15 minutes. I created shortcuts for TrackIR, MouseEmulator, GlovePie, and the Control Panel/Mouse all in one folder next to my Flight shortcut so that it won't take more than 30 seconds to get everthing running each time I want to play Flight.
March 11, 201214 yr 1. Go to your Control Panel -> Mouse and turn off "Enhanced Pointer Precision". This is important and the key to getting repeatable, consistent panning and having the view return to the center when you look straight ahead! You can always turn it back on when you're done flying.This was super helpful, thank you!
March 14, 201214 yr One thing I wish you could do is to have a permanant mouse look without having to hold down the right mouse button. I tried to map it to a button using a repeated key press but with no luck.That's one thing I like about the Saitek Pro Flight Yoke System, it has a HAT which is permanently assigned to free look. Jason BocheDelta Virtual Airlines Assistant Chief Pilot, B767-300
Create an account or sign in to comment