Jump to content
Sign in to follow this  
Guest Jimmy S

XML Right Mouse Button

Recommended Posts

Guest Jimmy S

Hi all!I'm currently working on an XML-altimeter gauge in which I would like to use the left and right mouse buttons within the same mouse area to trigger different functions. As I searched this forum I found that some say this is not possible and some people say it can be done. All I know is that I have several ac:s in which the usage of both mouse buttons is working, so if anyone can give me a hint on how to solve this I would be much gratefulBest regards,Jimmy Samuelsson

Share this post


Link to post
Share on other sites
Guest Jimmy S

Hi again,Today I managed to solve this problem, by using some of the XML code from the default GPS, where they use two click types within the same area. They want a button to be "pressed" for as long as the left mouse button is pressed and then "unpressed" again when the mouse button is released. I thought I should post it here since I have understood that some of you folks try to do just this and there are even some who say that it is impossible to have more than one click type within the one area.My code for the left/right mouse button looks like this:(M:Event) 'LeftSingle' scmp 0 == if{ your LMB action here } (M:Event) 'RightSingle' scmp 0 == if{ your RMB action here }I'm not sure if this works in fs2002 but it works for me in fs9.Happy landings,Jimmy

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...