- Messages
- 43
- Country
In writing C++ code for part of the electrical system, I have found between the model/animations and the code there are a lot of things that are going to need custom L:vars (and some will require associated trapping events) since there is (seemingly) no Avar to get data from the sim related to that part of the aircraft or pilot behavior, etc. My questions are in regard to using Hexidecimal EventIDs to trap an event. Before I continue I have looked at the wiki article here:
http://www.fsdeveloper.com/wiki/index.php?title=Gauges:_Resource_Numbering
In this article the Hex values are used for resource ids related to graphic files used in the gauges. The ranges given in the Wiki article are supposed to be "safe." When I looked up the first "safe" Hex number (0x0100), it was being used in gauges.h:
#define SIM_SPEED_1X 0x0100
I'm not sure if that would cause a potential conflict or not? Can these wiki hex values be used for the intended purpose I'm looking to accomplish, i.e. trap a user event? Also, I would like to know if there are any other pitfalls in using these Hex numbers for event ids to trap an event in a similar fashion to trapping stock FSX/P3D Event IDs in the Event Handler code like: KEY_PITOT_HEAT_SET.
Thanks for your help in advance.
http://www.fsdeveloper.com/wiki/index.php?title=Gauges:_Resource_Numbering
In this article the Hex values are used for resource ids related to graphic files used in the gauges. The ranges given in the Wiki article are supposed to be "safe." When I looked up the first "safe" Hex number (0x0100), it was being used in gauges.h:
#define SIM_SPEED_1X 0x0100
I'm not sure if that would cause a potential conflict or not? Can these wiki hex values be used for the intended purpose I'm looking to accomplish, i.e. trap a user event? Also, I would like to know if there are any other pitfalls in using these Hex numbers for event ids to trap an event in a similar fashion to trapping stock FSX/P3D Event IDs in the Event Handler code like: KEY_PITOT_HEAT_SET.
Thanks for your help in advance.