Jump to content
Sign in to follow this  
Guest rbumm

Disable joystick or send joystick input via simconnect ?

Recommended Posts

Guest rbumm

Hi, I'd like to disable / enable the joystick or a yoke from my addon. The only key event i found (JOYSTICK_CALIBRATE) is not working properly - although it says in the documentation that it toggles joystick on or off - it also does some kind of calibration. I need only "off" (for avoiding interference with non-centering joysticks in my autopilot) and "on" again after AP off. Any ideas avaliable ? Or is there a way to send joystick input data via simconnect ? rudolf

Share this post


Link to post
Share on other sites

Hi Rudolf,I haven't tried the joystick calibrate method, but it's possible to intercept all joystick input before it gets to FSX by using Priority in SimConnect.Take a look at the joystick input example in the SDK docs, especially atMapInputEventToClientEvent, which allows you to point any input on your joystick to a client event, and SetInputGroupPriority which you can use to mask the input from even FSX itself.Just make sure you include the part where you map the client events you created to a Notification group, because then you can set the "maskable" flag AddClientEventToNotificationGroup. It's sort of a round about way of blocking the input from FSX, but it also leaves you open to be able to work with that data if you want. And otherwise, I don't know of any other way to cut off the joysticks.

Share this post


Link to post
Share on other sites
Guest DocMoriarty

There is a settable simulation variable "User Input Enabled" which might work. I'm not sure whether this has to do with pause or a demo mode. Didn't play with it yet. SDK Doc is a tad unclear about it's purpose.

Share this post


Link to post
Share on other sites
Guest rbumm

Hi, Thanks for these infos. I will try this and maybe report back with a source examplerudolf

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