|
Title: How to program in TARGET Il2 - 3 position zoom on a switch in other SIMS Post by: TX-Gunslinger on May 31, 2011, 01:30:26 am Finally, I figured out how to create Il2 style - 3 position zoom - assigned to a single key. Plus - script below allows a slider to be part of the action too. The min-max slider values available for trim are -1024 to +1024 with 0 obviously being the center.
Works really well. Even better than Il2 - you could have 4 zoom levels or customize the %zoom on each. --------------------------------------------------------------------------------------------------- //First line maps the slider lever/elev trim on Warthog Throttle to DX_SLIDER_AXIS MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE); SetSCurve(&Throttle, THR_FC, 0, 0, 0, 0, 0); //Now we will setup script to modify the DX_SLIDER_AXIS - to jump to three preset zooms using SEQ - and set button zoom ala Il2! MapKeyIO(&HCougar, H3R, PULSE+VW_External_Friendly, SEQ( EXEC("TrimDXAxis(DX_SLIDER_AXIS, SET(0));" ), EXEC("TrimDXAxis(DX_SLIDER_AXIS, SET(1024));" ), EXEC("TrimDXAxis(DX_SLIDER_AXIS, SET(-1024));" ) ) ); Title: Re: How to program in TARGET Il2 - 3 position zoom on a switch in other SIMS Post by: GOZR on June 02, 2011, 09:44:54 am Great Gunny ! :)
Title: Re: How to program in TARGET Il2 - 3 position zoom on a switch in other SIMS Post by: TX-Gunslinger on June 02, 2011, 01:46:06 pm Hiya Goze!
Listen, I need to create a new account on your forums. I have not been there in so long because I've had trouble with my password Look for my new registration today :) S! Gunny |