1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

FSXA Disable joystick using event JOYSTICK_CALIBRATE

Discussion in 'SimConnect' started by Koalar, 2/5/12.

  1. Koalar

    Koalar

    Joined:
    20/12/08
    Messages:
    5
    Country:
    china
    I want to disable the joystick input and control the aircraft from my program, I tried the event JOYSTICK_CALIBRATE, which can toggle joystick on/off. But since it "toggles" the joystick on and off, how can I know which state it is in? Without that information I cannot know whether I should send this event to FSX. Any help will be aprreciated.
  2. ddawson

    ddawson Resource contributor

    Joined:
    27/9/06
    Messages:
    390
    Country:
    canada

    The way to approach this is to mask (ie, block) the xxx_AXIS_SET commands. Do whatever calculations you want with the incoming values, then use the AILERON_SET, ELEVATOR_SET and RUDDER_SET commands to control the aircraft.

    Doug
  3. Koalar

    Koalar

    Joined:
    20/12/08
    Messages:
    5
    Country:
    china
    Thank you. I just noticed that if I send JOYSTICK_CALIBREATE event, the buttons on the joystick are also disabled. That's not what I want. I will find how to block the input, thank you.

Share This Page