Jump to content
Sign in to follow this  
Rocky

How to "steal" joystick axis away from FS ?

Recommended Posts

Guest adameke777

I am trying to program a gauge that will intercept the elevator signal from joystick and process it on its own. I don't want FS to translate those signals directly into elevator deflection. I understand that one way of doing it would be through disabling joystick in FS (KEY_JOYSTICK_CALIBRATE event) and handling it throught DirectInput. 1. Is there a more elegant way of accomplishing this ? I only want to "steal" the pitch axis. The roll and yaw can be processed by FS, as far as I am concerned.2. Is there a way to read in the FS joystick axis assignments ? Should I be forced to use the dreaded "disable joy / DI" approach, I would like to preserve the FS assignments in order to eliminate the need for custom .cfg files.Adam

Share this post


Link to post
Share on other sites

Hello Adam,As far as I know, what you describe is the only way to steal the pitch axis from FS.If you want to read the FS joystick assignments, the only solution I know is to read and parse the "fs9.cfg" file.Eric

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