Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi sir Pete

i'm wondering how to program two of my joystick button to set sim rate :

-the first button : set simrate to 8X

-the second button : reset simrate to normal (1X)

thanks in advance for your great fs module ;)

Posted

i'm wondering how to program two of my joystick button to set sim rate :

-the first button : set simrate to 8X

-the second button : reset simrate to normal (1X)

You can only do that reliably by using the Offset controls to write directly to FSUIPC offsets.

For information on offset values you need a document found in the FSUIPC SDK, available from the Schiratti website. Here's the entry in the "FSUIPC for Programmers" document for the Sim Rate value (I simply searched on the word "rate" till I found it):

0C1A   2	Simulation rate *256 (i.e. 256=1x)

So, for your needs, the FSUIPC control to be assigned would be:

Offset Word Set (Word because the offset is 2 bytes. 1 byte = Byte, 2 bytes = Word, 4 Bytes = Dword)

with the offset field then set to "x0C1A" (the x tells FSUIPC it is in heXadecimal -- all offsets are known by hexadecimal numbers),

and the parameter field set to:

2048 for 8x (this being 256 x 8 )

256 for 1x

Okay?

Pete

Posted
thanks Sir Pete for reply but how to set exactly these values in fsuipc.ini?

DON'T!

Use the FSUIPC options dialogue for assigning buttons, as intended and documented! I just gave you exact steps!

Pete

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.