Sign in to follow this  
Rocky

How to "steal" joystick axis away from FS ?

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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