Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi, I am using Fsuipc 7.5.0b for MFSM2024. After clicking on LOG>LIST INPUT EVENTS, a list of Input Events is displayed. Is there an option to set the ID numbers of these events? I want to use these ID numbers to manage with Offsets 3114 and 3110.

Best regards

Dominik

Posted

There are no id numbers associated to Input Events. Each one is identified internally (and by MSFS) by a hash number, but I don't make these available.
But to send an Input Event via an offset, you should use offset 0x7C50/0x7C90 not 0x3110/0x3114, and use the input event name, preceded by 'I:'.

John

Posted
1 hour ago, John Dowson said:

There are no id numbers associated to Input Events. Each one is identified internally (and by MSFS) by a hash number, but I don't make these available.
But to send an Input Event via an offset, you should use offset 0x7C50/0x7C90 not 0x3110/0x3114, and use the input event name, preceded by 'I:'.

John

The first offset 0x7C50 corresponds to a value of e.g. "1" and the second 0x7C90 is a name e.g. "L:FCC_ALT_HLD"

Dominik

Posted
49 minutes ago, Dominik said:

The first offset 0x7C50 corresponds to a value of e.g. "1" and the second 0x7C90 is a name e.g. "L:FCC_ALT_HLD"

No. Please see the FSUIPC7 Offset Status document on how to use the facility at offset 0x7C50:

Quote

Area for setting lvars, activating hvars, calling presets, executing calculator code and sending Input Events.

To set and lvar value, first write the value to offset 0x0790 as a string, up to 8 characters in length (including the string terminator, so max 7 characters).Then write the lvar name, preceded by 'L:', to offset 0x7C50, maximum of 64 characters (including string terminator character).

To call a preset, first write the preset parameter (if needed) to offset 0x7C90 as a 32-bit integer value, then write the preset name, preceded by 'P:' to offset 0x7C50.

To send an Input Event, first write any parameter (if needed) to offset 0x7C90 as a 64-bit floating-point value, then write the input event name, preceded by 'I:' to offset 0x7C50.

To activate a hvar, write the hvar name preceded by 'H:' to offset 0x7C50.  No parameter is needed or used.

Lvars, hvars, input events and presets must be known to FSUIPC when using this facility. If it is not known, you can still use this offset but use the calculator code version. Any string found not starting with 'L:', 'H:', 'I:' or 'P:' is taken to be calculator code and will be executed as such.

 

John

Posted
1 hour ago, John Dowson said:

No. Please see the FSUIPC7 Offset Status document on how to use the facility at offset 0x7C50:

John

Thanks for the explanation, but I must be doing something wrong.

Fsuipc returns Monitor IPC:7C90 (S32) = 0x1 -  which is ok because the value is 1

However the next offset in the log is  Input Event written to offset 0x7C50 not found: ':'   trying to send 'I:FCC_ALT_HLD'

 
 
 
Posted

First, there is no point in monitoring such offsets, Monitoring logs the value of the read offset, whereas you write to the write offset (there are separate areas for read and writing),

26 minutes ago, Dominik said:

Fsuipc returns Monitor IPC:7C90 (S32) = 0x1 -  which is ok because the value is 1

Well, no point in monitoring, and even if you did you should monitor as a FLT64. The parameter/value for all input events is a 64-bit floating point value (double), as it is for lvars,
So make sure you write it as such, and not as an S32 (int). Please re-read the documentation....

John

 

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.