Sign in to follow this  
pepe3w

FSX - Updated Tokens & Events for gauges.h

Recommended Posts

// New FSX Tokens!!! ALTERNATE_STATIC_AIR_OPEN, // Alternate static air source AILERON_TRIM_PCT, // percent -1 to 1 RUDDER_TRIM_PCT, // percent -1 to 1 LIGHT_NAV_ON, LIGHT_BEACON_ON, LIGHT_LANDING_ON, LIGHT_TAXI_ON, LIGHT_STROBE_ON, LIGHT_PANEL_ON, LIGHT_RECOGNITION_ON, LIGHT_WING_ON, LIGHT_LOGO_ON, LIGHT_CABIN_ON, TOTAL_VELOCITY, TOTAL_WORLD_VELOCITY, VARIOMETER_RATE, VARIOMETER_SWITCH, RELATIVE_WIND_VELOCITY_BODY_X, RELATIVE_WIND_VELOCITY_BODY_Y, RELATIVE_WIND_VELOCITY_BODY_Z, ACCELERATION_WORLD_X, ACCELERATION_WORLD_Y, ACCELERATION_WORLD_Z, ACCELERATION_BODY_X, ACCELERATION_BODY_Y, ACCELERATION_BODY_Z, PLANE_ALT_ABOVE_GROUND, MAGNETIC_COMPASS, TURN_INDICATOR_RATE, TURN_INDICATOR_SWITCH, BRAKE_DEPENDENT_HYDRAULIC_PRESSURE, FLY_BY_WIRE_ELAC_SWITCH, FLY_BY_WIRE_FAC_SWITCH, FLY_BY_WIRE_SEC_SWITCH, FLY_BY_WIRE_ELAC_FAILED, FLY_BY_WIRE_FAC_FAILED, FLY_BY_WIRE_SEC_FAILED, GEAR_EMERGENCY_HANDLE_POSITION, GEAR_WARNING, TAILWHEEL_LOCK_ON, ANTISKID_BRAKES_ACTIVE, RETRACT_FLOAT_SWITCH, STEER_INPUT_CONTROL, STALL_ALPHA, EXIT_OPEN, DECISION_ALTITUDE_MSL, WATER_BALLAST_VALVE, AUTOPILOT_RPM_HOLD, AUTOPILOT_PITCH_HOLD_REF, AUTOPILOT_MAX_BANK, PROP_FEATHER_SWITCH, MASTER_IGNITION_SWITCH, BLEED_AIR_SOURCE_CONTROL, STRUCTURAL_ICE_PCT, ROTOR_BRAKE_HANDLE_POS, ROTOR_BRAKE_ACTIVE, ROTOR_CLUTCH_SWITCH_POS, ROTOR_CLUTCH_ACTIVE, ROTOR_GOV_SWITCH_POS, ROTOR_GOV_ACTIVE, ROTOR_LATERAL_TRIM_PCT, DISK_PITCH_ANGLE, DISK_BANK_ANGLE, DISK_PITCH_PCT, DISK_BANK_PCT, TOW_RELEASE_HANDLE, APU_PCT_RPM, APU_PCT_STARTER, APU_VOLTS, APU_GENERATOR_SWITCH, APU_GENERATOR_ACTIVE, APU_ON_FIRE_DETECTED, PRESSURIZATION_CABIN_ALTITUDE, PRESSURIZATION_CABIN_ALTITUDE_GOAL, PRESSURIZATION_CABIN_ALTITUDE_RATE, PRESSURIZATION_PRESSURE_DIFFERENTIAL, PRESSURIZATION_DUMP_SWITCH, FIRE_BOTTLE_SWITCH, FIRE_BOTTLE_DISCHARGED, CABIN_NO_SMOKING_ALERT_SWITCH, CABIN_SEATBELTS_ALERT_SWITCH, GPWS_WARNING, GPWS_SYSTEM_ACTIVE, IS_LATITUDE_LONGITUDE_FREEZE_ON, IS_ALTITUDE_FREEZE_ON, // New FSX Key Events!!!// #364 is a "replacement" for the previous entry!!!#define KEY_AP_N1_REF_SET (KEY_ID_MIN + 364)// Add these to the bottom of your existing list!!!#define KEY_REPAIR_AND_REFUEL (KEY_ID_MIN + 1113)#define KEY_DME_SELECT (KEY_ID_MIN + 1114)#define KEY_FUEL_DUMP_TOGGLE (KEY_ID_MIN + 1115)#define KEY_HORN_TRIGGER (KEY_ID_MIN + 1116)#define KEY_VIEW_COCKPIT_FORWARD (KEY_ID_MIN + 1117)#define KEY_VIEW_VIRTUAL_COCKPIT_FORWARD (KEY_ID_MIN + 1118)#define KEY_ADVENTURE_ACTION (KEY_ID_MIN + 1119)#define KEY_REQUEST_FUEL (KEY_ID_MIN + 1121)#define KEY_RELEASE_DROPPABLE_OBJECTS (KEY_ID_MIN + 1122)#define KEY_VIEW_PANEL_ALPHA_SET (KEY_ID_MIN + 1123)#define KEY_VIEW_PANEL_ALPHA_SELECT (KEY_ID_MIN + 1124)#define KEY_VIEW_PANEL_ALPHA_INC (KEY_ID_MIN + 1125)#define KEY_VIEW_PANEL_ALPHA_DEC (KEY_ID_MIN + 1126)#define KEY_VIEW_LINKING_SET (KEY_ID_MIN + 1127)#define KEY_VIEW_LINKING_TOGGLE (KEY_ID_MIN + 1128)#define KEY_RADIO_SELECTED_DME_IDENT_ENABLE (KEY_ID_MIN + 1129)#define KEY_RADIO_SELECTED_DME_IDENT_DISABLE (KEY_ID_MIN + 1130)#define KEY_RADIO_SELECTED_DME_IDENT_SET (KEY_ID_MIN + 1131)#define KEY_RADIO_SELECTED_DME_IDENT_TOGGLE (KEY_ID_MIN + 1132)#define KEY_FUEL_SELECTOR_LEFT_MAIN (KEY_ID_MIN + 1133)#define KEY_FUEL_SELECTOR_2_LEFT_MAIN (KEY_ID_MIN + 1134)#define KEY_FUEL_SELECTOR_3_LEFT_MAIN (KEY_ID_MIN + 1135)#define KEY_FUEL_SELECTOR_4_LEFT_MAIN (KEY_ID_MIN + 1136)#define KEY_FUEL_SELECTOR_RIGHT_MAIN (KEY_ID_MIN + 1137)#define KEY_FUEL_SELECTOR_2_RIGHT_MAIN (KEY_ID_MIN + 1138)#define KEY_FUEL_SELECTOR_3_RIGHT_MAIN (KEY_ID_MIN + 1139)#define KEY_FUEL_SELECTOR_4_RIGHT_MAIN (KEY_ID_MIN + 1140)//(KEY_ID_MIN + 1141)//(KEY_ID_MIN + 1142)//(KEY_ID_MIN + 1143)//(KEY_ID_MIN + 1144)//(KEY_ID_MIN + 1145)//(KEY_ID_MIN + 1146)#define KEY_GAUGE_KEYSTROKE (KEY_ID_MIN + 1147)#define KEY_MULTIPLAYER_VOICE_CAPTURE_START (KEY_ID_MIN + 1148)#define KEY_MULTIPLAYER_VOICE_CAPTURE_STOP (KEY_ID_MIN + 1149)#define KEY_SIMUI_WINDOW_HIDESHOW (KEY_ID_MIN + 1150)#define KEY_TOGGLE_VARIOMETER_SWITCH (KEY_ID_MIN + 1151)#define KEY_TOGGLE_TURN_INDICATOR_SWITCH (KEY_ID_MIN + 1152)#define KEY_WINDOW_TITLES_TOGGLE (KEY_ID_MIN + 1153)#define KEY_AXIS_INDICATOR_CYCLE (KEY_ID_MIN + 1154)#define KEY_MAP_ORIENTATION_CYCLE (KEY_ID_MIN + 1155)#define KEY_POINT_OF_INTEREST_TOGGLE_POINTER (KEY_ID_MIN + 1156)#define KEY_POINT_OF_INTEREST_CYCLE_PREVIOUS (KEY_ID_MIN + 1157)#define KEY_POINT_OF_INTEREST_CYCLE_NEXT (KEY_ID_MIN + 1158)#define KEY_TOGGLE_JETWAY (KEY_ID_MIN + 1159)#define KEY_RETRACT_FLOAT_SWITCH_DEC (KEY_ID_MIN + 1160)#define KEY_RETRACT_FLOAT_SWITCH_INC (KEY_ID_MIN + 1161)#define KEY_TOGGLE_WATER_BALLAST_VALVE (KEY_ID_MIN + 1162)#define KEY_VIEW_CHASE_DISTANCE_ADD (KEY_ID_MIN + 1163)#define KEY_VIEW_CHASE_DISTANCE_SUB (KEY_ID_MIN + 1164)#define KEY_AVIONICS_MASTER_SET (KEY_ID_MIN + 1165)#define KEY_EXTERNAL_SYSTEM_SET (KEY_ID_MIN + 1166)#define KEY_EXTERNAL_SYSTEM_TOGGLE (KEY_ID_MIN + 1167)#define KEY_APU_STARTER (KEY_ID_MIN + 1168)#define KEY_APU_OFF_SWITCH (KEY_ID_MIN + 1169)#define KEY_APU_GENERATOR_SWITCH_TOGGLE (KEY_ID_MIN + 1170)#define KEY_APU_GENERATOR_SWITCH_SET (KEY_ID_MIN + 1171)#define KEY_EXTINGUISH_ENGINE_FIRE (KEY_ID_MIN + 1172)#define KEY_AP_MAX_BANK_INC (KEY_ID_MIN + 1173)#define KEY_AP_MAX_BANK_DEC (KEY_ID_MIN + 1174)#define KEY_AP_N1_HOLD (KEY_ID_MIN + 1175)#define KEY_HYDRAULIC_SWITCH_TOGGLE (KEY_ID_MIN + 1176)#define KEY_DECISION_ALTITUDE_MSL_INC (KEY_ID_MIN + 1177)#define KEY_DECISION_ALTITUDE_MSL_DEC (KEY_ID_MIN + 1178)#define KEY_BLEED_AIR_SOURCE_CONTROL_INC (KEY_ID_MIN + 1179)#define KEY_BLEED_AIR_SOURCE_CONTROL_DEC (KEY_ID_MIN + 1180)#define KEY_TURBINE_IGNITION_SWITCH_TOGGLE (KEY_ID_MIN + 1181)#define KEY_CABIN_NO_SMOKING_ALERT_SWITCH_TOGGLE (KEY_ID_MIN + 1182)#define KEY_CABIN_SEATBELTS_ALERT_SWITCH_TOGGLE (KEY_ID_MIN + 1183)#define KEY_ANTISKID_BRAKES_TOGGLE (KEY_ID_MIN + 1184)#define KEY_GPWS_SWITCH_TOGGLE (KEY_ID_MIN + 1185)#define KEY_VIDEO_RECORD_TOGGLE (KEY_ID_MIN + 1186)#define KEY_SET_AUTOBRAKE_CONTROL (KEY_ID_MIN + 1187)#define KEY_TOGGLE_AIRPORT_NAME_DISPLAY (KEY_ID_MIN + 1188)#define KEY_TOGGLE_MASTER_STARTER_SWITCH (KEY_ID_MIN + 1189)#define KEY_GEAR_EMERGENCY_HANDLE_TOGGLE (KEY_ID_MIN + 1190)#define KEY_AILERON_TRIM_SET (KEY_ID_MIN + 1195)#define KEY_RUDDER_TRIM_SET (KEY_ID_MIN + 1196)#define KEY_CAPTURE_SCREENSHOT (KEY_ID_MIN + 1197)#define KEY_MOUSE_LOOK_TOGGLE (KEY_ID_MIN + 1198)#define KEY_MULTIPLAYER_BROADCAST_VOICE_CAPTURE_START (KEY_ID_MIN + 1199)#define KEY_MULTIPLAYER_BROADCAST_VOICE_CAPTURE_STOP (KEY_ID_MIN + 1200)#define KEY_FLY_BY_WIRE_ELAC_TOGGLE (KEY_ID_MIN + 1201)#define KEY_FLY_BY_WIRE_FAC_TOGGLE (KEY_ID_MIN + 1202)#define KEY_FLY_BY_WIRE_SEC_TOGGLE (KEY_ID_MIN + 1203)#define KEY_MANUAL_FUEL_PRESSURE_PUMP (KEY_ID_MIN + 1204)#define KEY_ADF1_RADIO_SWAP (KEY_ID_MIN + 1205)#define KEY_ADF2_RADIO_SWAP (KEY_ID_MIN + 1206)#define KEY_YAXIS_INVERT_TOGGLE (KEY_ID_MIN + 1207)#define KEY_LOW_HEIGHT_WARNING_SET (KEY_ID_MIN + 1210) //Spelling correction for KEY_LOW_HIGHT_WARNING_SET #define KEY_LOW_HEIGHT_WARNING_GAUGE_WILL_SET (KEY_ID_MIN + 1211) //Spelling correction for KEY_LOW_HIGHT_WARNING_GAUGE_WILL_SET#define KEY_G1000_PFD_ZOOMIN_BUTTON (KEY_ID_MIN + 1212)#define KEY_G1000_PFD_ZOOMOUT_BUTTON (KEY_ID_MIN + 1213)#define KEY_G1000_PFD_DIRECTTO_BUTTON (KEY_ID_MIN + 1214)#define KEY_G1000_PFD_MENU_BUTTON (KEY_ID_MIN + 1215)#define KEY_G1000_PFD_FLIGHTPLAN_BUTTON (KEY_ID_MIN + 1216)#define KEY_G1000_PFD_PROCEDURE_BUTTON (KEY_ID_MIN + 1217)#define KEY_G1000_PFD_CLEAR_BUTTON (KEY_ID_MIN + 1218)#define KEY_G1000_PFD_ENTER_BUTTON (KEY_ID_MIN + 1219)#define KEY_G1000_PFD_CURSOR_BUTTON (KEY_ID_MIN + 1220)#define KEY_G1000_PFD_GROUP_KNOB_INC (KEY_ID_MIN + 1221)#define KEY_G1000_PFD_GROUP_KNOB_DEC (KEY_ID_MIN + 1222)#define KEY_G1000_PFD_PAGE_KNOB_INC (KEY_ID_MIN + 1223)#define KEY_G1000_PFD_PAGE_KNOB_DEC (KEY_ID_MIN + 1224)#define KEY_G1000_PFD_SOFTKEY1 (KEY_ID_MIN + 1225)#define KEY_G1000_PFD_SOFTKEY2 (KEY_ID_MIN + 1226)#define KEY_G1000_PFD_SOFTKEY3 (KEY_ID_MIN + 1227)#define KEY_G1000_PFD_SOFTKEY4 (KEY_ID_MIN + 1228)#define KEY_G1000_PFD_SOFTKEY5 (KEY_ID_MIN + 1229)#define KEY_G1000_PFD_SOFTKEY6 (KEY_ID_MIN + 1230)#define KEY_G1000_PFD_SOFTKEY7 (KEY_ID_MIN + 1231)#define KEY_G1000_PFD_SOFTKEY8 (KEY_ID_MIN + 1232)#define KEY_G1000_PFD_SOFTKEY9 (KEY_ID_MIN + 1233)#define KEY_G1000_PFD_SOFTKEY10 (KEY_ID_MIN + 1234)#define KEY_G1000_PFD_SOFTKEY11 (KEY_ID_MIN + 1235)#define KEY_G1000_PFD_SOFTKEY12 (KEY_ID_MIN + 1236)#define KEY_G1000_MFD_ZOOMIN_BUTTON (KEY_ID_MIN + 1240)#define KEY_G1000_MFD_ZOOMOUT_BUTTON (KEY_ID_MIN + 1241)#define KEY_G1000_MFD_DIRECTTO_BUTTON (KEY_ID_MIN + 1242)#define KEY_G1000_MFD_MENU_BUTTON (KEY_ID_MIN + 1243)#define KEY_G1000_MFD_FLIGHTPLAN_BUTTON (KEY_ID_MIN + 1244)#define KEY_G1000_MFD_PROCEDURE_BUTTON (KEY_ID_MIN + 1245)#define KEY_G1000_MFD_CLEAR_BUTTON (KEY_ID_MIN + 1246)#define KEY_G1000_MFD_ENTER_BUTTON (KEY_ID_MIN + 1247)#define KEY_G1000_MFD_CURSOR_BUTTON (KEY_ID_MIN + 1248)#define KEY_G1000_MFD_GROUP_KNOB_INC (KEY_ID_MIN + 1249)#define KEY_G1000_MFD_GROUP_KNOB_DEC (KEY_ID_MIN + 1250)#define KEY_G1000_MFD_PAGE_KNOB_INC (KEY_ID_MIN + 1251)#define KEY_G1000_MFD_PAGE_KNOB_DEC (KEY_ID_MIN + 1252)#define KEY_G1000_MFD_SOFTKEY1 (KEY_ID_MIN + 1253)#define KEY_G1000_MFD_SOFTKEY2 (KEY_ID_MIN + 1254)#define KEY_G1000_MFD_SOFTKEY3 (KEY_ID_MIN + 1255)#define KEY_G1000_MFD_SOFTKEY4 (KEY_ID_MIN + 1256)#define KEY_G1000_MFD_SOFTKEY5 (KEY_ID_MIN + 1257)#define KEY_G1000_MFD_SOFTKEY6 (KEY_ID_MIN + 1258)#define KEY_G1000_MFD_SOFTKEY7 (KEY_ID_MIN + 1259)#define KEY_G1000_MFD_SOFTKEY8 (KEY_ID_MIN + 1260)#define KEY_G1000_MFD_SOFTKEY9 (KEY_ID_MIN + 1261)#define KEY_G1000_MFD_SOFTKEY10 (KEY_ID_MIN + 1262)#define KEY_G1000_MFD_SOFTKEY11 (KEY_ID_MIN + 1263)#define KEY_G1000_MFD_SOFTKEY12 (KEY_ID_MIN + 1264)#define KEY_TOW_PLANE_RELEASE (KEY_ID_MIN + 1270)#define KEY_REQUEST_TOW_PLANE (KEY_ID_MIN + 1271)#define KEY_STEERING_INC (KEY_ID_MIN + 1280)#define KEY_STEERING_DEC (KEY_ID_MIN + 1281)#define KEY_STEERING_SET (KEY_ID_MIN + 1282)#define KEY_APU_EXTINGUISH_FIRE (KEY_ID_MIN + 1290)#define KEY_FREEZE_LATITUDE_LONGITUE_TOGGLE (KEY_ID_MIN + 1295)#define KEY_FREEZE_LATITUDE_LONGITUE_SET (KEY_ID_MIN + 1296)#define KEY_FREEZE_ALTITUDE_TOGGLE (KEY_ID_MIN + 1297)#define KEY_FREEZE_ALTITUDE_SET (KEY_ID_MIN + 1298)#define KEY_PRESSURIZATION_PRESSURE_ALT_INC (KEY_ID_MIN + 1300)#define KEY_PRESSURIZATION_PRESSURE_ALT_DEC (KEY_ID_MIN + 1301)#define KEY_PRESSURIZATION_CLIMB_RATE_INC (KEY_ID_MIN + 1302)#define KEY_PRESSURIZATION_CLIMB_RATE_DEC (KEY_ID_MIN + 1303)#define KEY_PRESSURIZATION_CLIMB_RATE_SET (KEY_ID_MIN + 1304)#define KEY_PRESSURIZATION_PRESSURE_DUMP_SWITCH (KEY_ID_MIN + 1305)#define KEY_BAROMETRIC_STD_PRESSURE (KEY_ID_MIN + 1310)#define KEY_MULTIPLAYER_PAUSE_SESSION (KEY_ID_MIN + 1311)#define KEY_VIEW_CAMERA_SELECT_1 (KEY_ID_MIN + 1315)#define KEY_VIEW_CAMERA_SELECT_2 (KEY_ID_MIN + 1316)#define KEY_VIEW_CAMERA_SELECT_3 (KEY_ID_MIN + 1317)#define KEY_VIEW_CAMERA_SELECT_4 (KEY_ID_MIN + 1318)#define KEY_VIEW_CAMERA_SELECT_5 (KEY_ID_MIN + 1319)#define KEY_VIEW_CAMERA_SELECT_6 (KEY_ID_MIN + 1320)#define KEY_VIEW_CAMERA_SELECT_7 (KEY_ID_MIN + 1321)#define KEY_VIEW_CAMERA_SELECT_8 (KEY_ID_MIN + 1322)#define KEY_VIEW_CAMERA_SELECT_9 (KEY_ID_MIN + 1323)#define KEY_VIEW_CAMERA_SELECT_0 (KEY_ID_MIN + 1324)

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Bill,GPWS_WARNING, GPWS_SYSTEM_ACTIVE, Does this mean that FSX has a working GPWS now ??Cheers, Rob

Share this post


Link to post
Share on other sites

>Hi Bill,>>GPWS_WARNING, >GPWS_SYSTEM_ACTIVE, >>Does this mean that FSX has a working GPWS now ??Yes, that is exactly what that means... ;)Now I have to figure out how to turn it OFF so it won't compete with our own, custom GPWS... :-lol

Share this post


Link to post
Share on other sites

fr. Bill,#define KEY_GPWS_SWITCH_TOGGLE (KEY_ID_MIN + 1185)?A question:Can we edit the bitmaps and text in the FSX xml gauges, without all the "MS safety matters" i've read about?Jan"Beatus ille qui procul negotiis..."

Share this post


Link to post
Share on other sites

>Can we edit the bitmaps and text in the FSX xml gauges,>without all the "MS safety matters" i've read about?Jan, XML gauges are not affected by this need for a Trusted Certificate. This applys only to C style gauges and addon modules. ;)

Share this post


Link to post
Share on other sites

Nothing really startling in that lot then... :). A couple of them catch my eye and I suspect that rather more than a couple are aliases for existing tokens variables e.g. PLANE_ALT_ABOVE_GROUND is probably an alias for RADAR_HEIGHT (sp. and guesswork 'coz I'm at work and can't read my fs9gauges.h).I don't get my gold FSX till Friday 13th (release day here) but I aim to have an updated/backwards-compatible fsxgauges.h file available for next week. Don't hold me to it though!Did M$ fix the Trusted Certificate bug that was in Beta 3 i.e. it asked if you wanted to permanently trust a gaufile but ignored your answer and asked you again next time? Guess I'll find out...-Dai

Share this post


Link to post
Share on other sites

>Did M$ fix the Trusted Certificate bug that was in Beta 3 i.e.>it asked if you wanted to permanently trust a gaufile but>ignored your answer and asked you again next time? Guess I'll>find out...Yes, they fixed that... ;)Now, all I have to do is figure out how to create my own Root Certificate...

Share this post


Link to post
Share on other sites

>Do we have the enum declaration for the new XML_TOKENS?>Those are not part of the official SDK, they were figured out (hacked) by another individual.In the current SDK I don't see much that's available for XML that isn't available for the C++ gauges.

Share this post


Link to post
Share on other sites

Hi allAny idea how to convert LATLONALT to a latitud and longitud in degrees, minutes and seconds?I have tried with ANGL48_TO_DEGREES and SIF48_TO_FLOAT64, but still having got a very odd numbers.ThanksJose

Share this post


Link to post
Share on other sites

>Hi all>>Any idea how to convert LATLONALT to a latitud and longitud in>degrees, minutes and seconds?>>I have tried with ANGL48_TO_DEGREES and SIF48_TO_FLOAT64, but>still having got a very odd numbers.>>Thanks>>JoseI'm uncertain why you're even bothering to use LATLONALT. There are perfectly good latitude/longitude variables already available.

Share this post


Link to post
Share on other sites

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
Sign in to follow this