n4gix
Resource contributor
- Messages
- 11,674
- Country

Since there does not seem to be an appropriate forum for this question, I'm using this forum to ask. The question actually involves modeldef.xml scripting, as well as C gauge programming.
We are allowed to create custom EventIDs which are actually required for "Shared Cockpit" development, but thus far at least there seems to be a dearth of information on how to actually USE them, aside from a very brief mention of them in the SDK, and a few (undocumented) examples in the modeldef.xml file from FSX Acceleration, where they were used for the FA-18...
This example shows how to use <CallbackJumpDragging>, which is a techique I throughly despise:
This example shows how to use a single, left-click for a binary switch:
There are however no examples whatever about multi-button (i.e., left/middle/right clicking) or mouse wheel useage.
So, my question is... does anyone know if such is possible at all, and/or has anyone tried this at all?
Is it possible to pass a value to a custom EventID at all?
Is something like this possible:
We are allowed to create custom EventIDs which are actually required for "Shared Cockpit" development, but thus far at least there seems to be a dearth of information on how to actually USE them, aside from a very brief mention of them in the SDK, and a few (undocumented) examples in the modeldef.xml file from FSX Acceleration, where they were used for the FA-18...
This example shows how to use <CallbackJumpDragging>, which is a techique I throughly despise:
Code:
<CallbackJumpDragging>
<XMovement>
<Delta>2</Delta>
<EventIdInc>0x11001</EventIdInc>
<EventIdDec>0x11002</EventIdDec>
</XMovement>
</CallbackJumpDragging>
Code:
<MouseRect>
<Cursor>Hand</Cursor>
<MouseFlags>LeftSingle</MouseFlags>
<EventID>0x00011003</EventID>
</MouseRect>
So, my question is... does anyone know if such is possible at all, and/or has anyone tried this at all?
Is it possible to pass a value to a custom EventID at all?
Is something like this possible:
Code:
<CallbackCode>
4 (>K:0x11002)
</CallbackCode>
Last edited:







