Jump to content
The simFlight Network Forums

Custom key events linked to hardware


Recommended Posts

Hi

I dont have a registered FSUIPC...dont really have a need for it since i know how to use Simconnect as a C++ programmer....

Anyways Im trying to help a tester at Milviz get his hardware to work with a project-in-dev. I have used custom key events throughout this project (the 0x11000 type). I went through the FSUIPC documentation but im a bit at a loss as to how macros are created to work with custom key events. Anyone here who can share?

Thanks

JB

Link to comment
Share on other sites

I went through the FSUIPC documentation but im a bit at a loss as to how macros are created to work with custom key events. Anyone here who can share?

Not sure why you need macros just because their custom key events. Are you sure your 'tester' is using an up to date FSUIPC and that you also are referring to recent documentation?

Custom events declared via SimConnect are NAMED, not numbered, and you tell FSUIPC about them by listing their names in an .evt file.-- see the section "Add-on Custom events" in the Advanced User's manual.

If, instead, by "custom key events" you do not mean those named via SimConnect, but FS key events using WM_COMMAND numbers outside the normal range (much like PMDG have done with their 737NGX), then these have been assignable directly in the Assignments dialogues since version 4.85. Search on "custom control" in the User Guide.

Regards

Pete

Link to comment
Share on other sites

Ok looks like its the latter that the user is needing. However a small descrepancy in the user guide. All FSX key events (eg KEY_TOGGLE_FUEL_VALVE_ENG1 or (>K:TOGGLE_FUEL_VALVE_ENG1) as it is done in XML gauges) have an associated hex ID number defined in the Gauges.h file starting at 0x10000 or as the user guide correctly states, 65536. The 3rd party Custom event point starts at 0x11000 and ends at 0x1FFFF or 131070 as the guide again correctly states. However the hex notation in the guide seems a little off.

Custom controls, without a name known to FSUIPC, can be assigned by selecting <custom control> from the drop-down list, and then entering its number in decimal (range 65536 to 131070 inclusive) or, if you wish, in hexadecimal preceded by an x (range x1000 to x1FFE)

Is there a reason for the out of range when in the Gauges.h it starts at x10000 and ends at x1FFFF?

Link to comment
Share on other sites

Ok looks like its the latter that the user is needing. However a small descrepancy in the user guide. All FSX key events (eg KEY_TOGGLE_FUEL_VALVE_ENG1 or (>K:TOGGLE_FUEL_VALVE_ENG1) as it is done in XML gauges) have an associated hex ID number defined in the Gauges.h file starting at 0x10000 or as the user guide correctly states, 65536. The 3rd party Custom event point starts at 0x11000 and ends at 0x1FFFF or 131070 as the guide again correctly states. However the hex notation in the guide seems a little off.

Is there a reason for the out of range when in the Gauges.h it starts at x10000 and ends at x1FFFF?

Sorry, can you be more explicit, pleas. i don't understand what you meran by "hex notation" being a "little off"?

[LATER]

Oh I see. Typo. It says x1000 and x1FFE and it should say x10000 and x1FFFE. (The last one, x1FFFF is reserved for internal use). Fixed for next release, in a month or two.

Pete

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

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