funkyfranky Posted August 4, 2018 Posted August 4, 2018 Guys, here are some additional switches for the Yak-52. Zip file is attached and JSGME/OvGME ready. Once installed, you will find a new category "_My Buttons" at the very end of the list and can assign buttons of your HOTAS or button boxes to your liking. For completeness, here is the code: -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- _MyButtons v1.0 by FF: begin additional commands -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- CONTROLS {down = device_commands.Button_9, up = device_commands.Button_9, cockpit_device_id = devices.CONTROLS, value_down =-1.0, value_up = 0.0, name = _('Undercarriage RETRACT/NEUTRAL'), category = {_('Systems'), _('_My Buttons')}}, {down = device_commands.Button_9, up = device_commands.Button_9, cockpit_device_id = devices.CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Undercarriage EXTEND/NEUTRAL'), category = {_('Systems'), _('_My Buttons')}}, {down = device_commands.Button_17, up = device_commands.Button_17, cockpit_device_id = devices.CONTROLS, value_down = 0.0, value_up = 0.5, name = _('Landing Flaps RETRACT/NEUTRAL'), category = {_('Flight Control'), _('_My Buttons')}}, {down = device_commands.Button_17, up = device_commands.Button_17, cockpit_device_id = devices.CONTROLS, value_down = 1.0, value_up = 0.5, name = _('Landing Flaps EXTEND/NEUTRAL'), category = {_('Flight Control'), _('_My Buttons')}}, {down = device_commands.Button_42, up = device_commands.Button_42, cockpit_device_id = devices.CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Brakes Purge ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_58, up = device_commands.Button_58, cockpit_device_id = devices.CONTROLS, value_down = 0.0, value_up = 1.0, name = _('Canopy OPEN/CLOSE'), category = {_('Systems'), _('_My Buttons')}}, -- ENGINE_CONTROLS {down = device_commands.Button_1, up = device_commands.Button_1, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Ignition Control Switch FORWARD/REAR Cabin'), category = {_('Engine Controls'), _('_My Buttons')}}, {down = device_commands.Button_1, up = device_commands.Button_1, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 0.0, value_up = 1.0, name = _('Ignition Control Switch REAR/FORWARD Cabin'), category = {_('Engine Controls'), _('_My Buttons')}}, {down = device_commands.Button_44, up = device_commands.Button_44, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Primer Selector CYLINDERS/OFF'), category = {_('Engine Controls'), _('_My Buttons')}}, {down = device_commands.Button_44, up = device_commands.Button_44, cockpit_device_id = devices.ENGINE_CONTROLS, value_down =-1.0, value_up = 0.0, name = _('Primer Selector TRUNK/OFF'), category = {_('Engine Controls'), _('_My Buttons')}}, {down = device_commands.Button_62, up = device_commands.Button_62, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Carb. Heat ON/OFF'), category = {_('Engine Controls'), _('_My Buttons')}}, -- seemed to be reversed _1=0, _0=1 {down = device_commands.Button_50, up = device_commands.Button_50, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Main Fuel Cock ON/OFF'), category = {_('Engine Controls'), _('_My Buttons')}}, --{down = device_commands.Button_38, up = device_commands.Button_38, cockpit_device_id = devices.ENGINE_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Starter Cover OPEN/CLOSE'), category = {_('Engine Controls'), _('_My Buttons')}}, -- not working atm. -- NAVIGATIONAL_CONTROLS {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id = devices.NAVIGATIONAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Gyro-magnetic Compass Hemisphere SOUTHERN/NORTHERN'), category = {_('Right Side Panel'), _('GMC Control Panel'), _('_My Buttons')}}, {down = device_commands.Button_2, up = device_commands.Button_2, cockpit_device_id = devices.NAVIGATIONAL_CONTROLS, value_down = 0.0, value_up = 1.0, name = _('Gyro-magnetic Compass Hemisphere NORTHERN/SOUTHERN'), category = {_('Right Side Panel'), _('GMC Control Panel'), _('_My Buttons')}}, {down = device_commands.Button_4, up = device_commands.Button_4, cockpit_device_id = devices.NAVIGATIONAL_CONTROLS, value_down =-1.0, value_up = 0.0, name = _('Gyro-magnetic Compass Mode MAGNETIC/GYRO'), category = {_('Right Side Panel'), _('GMC Control Panel'), _('_My Buttons')}}, {down = device_commands.Button_4, up = device_commands.Button_4, cockpit_device_id = devices.NAVIGATIONAL_CONTROLS, value_down = 0.0, value_up =-1.0, name = _('Gyro-magnetic Compass Mode GYRO/MAGNETIC'), category = {_('Right Side Panel'), _('GMC Control Panel'), _('_My Buttons')}}, {down = device_commands.Button_13, up = device_commands.Button_13, cockpit_device_id = devices.NAVIGATIONAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Radio-compass Listen Mode TELEPHONE/TELEGRAPH'), category = {_('Right Side Panel'), _('RDF Control Panel'), _('_My Buttons')}}, {down = device_commands.Button_15, up = device_commands.Button_15, cockpit_device_id = devices.NAVIGATIONAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Radio-compass Mode COMPASS/ANTENNA'), category = {_('Right Side Panel'), _('RDF Control Panel'), _('_My Buttons')}}, {down = device_commands.Button_21, up = device_commands.Button_21, cockpit_device_id = devices.NAVIGATIONAL_CONTROLS, value_down = 0.0, value_up = 1.0, name = _('Marker Beacon OUTER/INNER'), category = {_('RDF Control Panel'), _('Front Dash'), _('_My Buttons')}}, {down = device_commands.Button_21, up = device_commands.Button_21, cockpit_device_id = devices.NAVIGATIONAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Marker Beacon INNER/OUTER'), category = {_('RDF Control Panel'), _('Front Dash'), _('_My Buttons')}}, -- ELECTRICAL_CONTROLS {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 0.0, value_up = 0.5, name = _('Battery Selector EXTERNAL/OFF'), category = {_('Front Dash'), _('Right Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_3, up = device_commands.Button_3, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.5, name = _('Battery Selector BATTERY/OFF'), category = {_('Front Dash'), _('Right Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_6, up = device_commands.Button_6, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Generator ON/OFF'), category = {_('Front Dash'), _('Right Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_9, up = device_commands.Button_9, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Ignition ON/OFF'), category = {_('Front Dash'), _('Right Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_12, up = device_commands.Button_12, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Pitot Heating ON/OFF'), category = {_('Front Dash'), _('Right Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_15, up = device_commands.Button_14, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Engine Instruments ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_20, up = device_commands.Button_20, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Stall Warning System Heater ON/OFF'),category = {_('Front Dash'), _('Right Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_23, up = device_commands.Button_23, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Stall Warning System ON/OFF'), category = {_('Front Dash'), _('Right Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_26, up = device_commands.Button_26, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('VHF Radio ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_29, up = device_commands.Button_29, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Intercom ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_32, up = device_commands.Button_32, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('PAG-1F Converter ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_35, up = device_commands.Button_35, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Landing Gear Warning ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_38, up = device_commands.Button_38, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('PT-200 Converter ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_41, up = device_commands.Button_41, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Radio-compass ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_44, up = device_commands.Button_44, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Gyro-magnetic Compass ON/OFF'), category = {_('Left Circuit Breakers Panel'), _('_My Buttons')}}, {down = device_commands.Button_53, up = device_commands.Button_53, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Instruments Failure Simulation ON/OFF'), category = {_('Front Dash'), _('Trainer Panel'), _('_My Buttons')}}, {down = device_commands.Button_56, up = device_commands.Button_56, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Instruments Failure - Horizon ON/OFF'), category = {_('Front Dash'), _('Trainer Panel'), _('_My Buttons')}}, {down = device_commands.Button_59, up = device_commands.Button_59, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Instruments Failure - Speedometer ON/OFF'), category = {_('Front Dash'), _('Trainer Panel'), _('_My Buttons')}}, {down = device_commands.Button_62, up = device_commands.Button_62, cockpit_device_id = devices.ELECTRICAL_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Instruments Failure - Altitude And Variometer ON/OFF'), category = {_('Front Dash'), _('Trainer Panel'), _('_My Buttons')}}, -- VHF_RADIO {down = device_commands.Button_22, up = device_commands.Button_22, cockpit_device_id = devices.VHF_RADIO, value_down = 1.0, value_up = 0.0, name = _('VHF Radio Squelch ON/OFF'), category = {_('Front Dash'), _('VHF Radio'), _('_My Buttons')}}, -- TERTIARY_CONTROLS {down = device_commands.Button_38, up = device_commands.Button_38, cockpit_device_id = devices.TERTIARY_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Fuel Quantity Indicator - Dimmer NIGHT/DAY'), category = {_('Front Dash'), _('_My Buttons')}}, {down = device_commands.Button_39, up = device_commands.Button_39, cockpit_device_id = devices.TERTIARY_CONTROLS, value_down = 1.0, value_up = 0.0, name = _('Smoke Apparatus ON/OFF'), category = {_('Stick'), _('_My Buttons')}}, -- CHANGE SEAT {down = iCommandViewCockpitChangeSeat, up = iCommandViewCockpitChangeSeat, value_down = 1, value_up = 2, name = _('Occupy Seat 1/2'), category = {_('View Cockpit'), _('_My Buttons')}}, {down = iCommandViewCockpitChangeSeat, up = iCommandViewCockpitChangeSeat, value_down = 2, value_up = 1, name = _('Occupy Seat 2/1'), category = {_('View Cockpit'), _('_My Buttons')}}, -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- _MyButtons by FF: end of additional commands -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Hope it helps :)_My Buttons Yak-52.zip A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
aaron886 Posted August 4, 2018 Posted August 4, 2018 This is great, thank you! Saves me a lot of time. One day maybe ED will implement release actions and allow double binds so that this work isn't necessary.
Jack McCoy Posted August 5, 2018 Posted August 5, 2018 ... One day maybe ED will implement release actions and allow double binds so that this work isn't necessary. +1 i7-7700K@4.8GHz, 16Gb-3200, GTX-1080Ti-Strix-11Gb, Maximus IX Hero, Oculus Rift, Thrustmaster Warthog+F/A-18C, Logitech G940 Pedals.
Nero.ger Posted August 5, 2018 Posted August 5, 2018 This is great, thank you! Saves me a lot of time. One day maybe ED will implement release actions and allow double binds so that this work isn't necessary. OR we get a some kind of custom.lua, so we dont have to copy everything back after every update. which would be much nicer because every pitbuilder has different needs 'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.
funkyfranky Posted August 5, 2018 Author Posted August 5, 2018 The good thing is that we can make our own modifications. However, only to a certain degree. We rely very much on what the devs have implemented in terms of toggle buttons, rotaries etc. Here it was very well done. Also the Hornet was shining in this regard. But it seems more problematic with 3rd party devs. Some aircraft don't allow to do anything. Therefore, I cannot use half of my hardware, which is a shame. I reckon there are many people which have no problem to use the mouse for clicking buttons, and flipping switches. Unfortunately, I'm just not one of them. So a certain standard in terms of what is implemented would be nice. A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
Koriel Posted August 5, 2018 Posted August 5, 2018 The good thing is that we can make our own modifications. However, only to a certain degree. We rely very much on what the devs have implemented in terms of toggle buttons, rotaries etc. Here it was very well done. Also the Hornet was shining in this regard. But it seems more problematic with 3rd party devs. Some aircraft don't allow to do anything. Therefore, I cannot use half of my hardware, which is a shame. I reckon there are many people which have no problem to use the mouse for clicking buttons, and flipping switches. Unfortunately, I'm just not one of them. So a certain standard in terms of what is implemented would be nice. I commend you for your work. May you keep on doing it for others.. ;-) Like we have Chuck for the guides, and you for the 2/3 way switches..
Recommended Posts