Jump to content
Sign in to follow this  
Redlander

Need mouse event syntax help

Recommended Posts

I'm trying to use the left and right mouse buttons to operate the pitot heat switch. The left button will turn it on but the right one won't work. What am I doing wrong here? (I based this on what I was able to glean about the use of mouse events in the fs9gps file but I'm not a programmer and don't fully understand the complicated syntax.)(A:Pitot heat,bool)(M:Event) 'LeftSingle' scmp 0 == (>K:PITOT_HEAT_ON) 0 == and if{ 1 (K:PITOT_HEAT_OFF) (M:Event) 'RightSingle' scmp 0 == (>K:PITOT_HEAT_OFF) 0 == and if{ 1 (K:PITOT_HEAT_ON)Cheers, Bob

Share this post


Link to post
Share on other sites

Hi,Try this:(M:Event) 'LeftSingle' scmp 0 == if{ (>K:PITOT_HEAT_ON) }(M:Event) 'RightSingle' scmp 0 == if{ (>K:PITOT_HEAT_OFF) }Tom

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...