Jump to content

Axis bind for rotaries (lights, course, ..)


Recommended Posts

Ok, I found the button lines in Default.lua, but well, I didn't know how to use this info to add new axis command in the file :

 

{pressed = device_commands.Button_130, cockpit_device_id = devices.LIGHTS, value_pressed = -1, name = _('Instrument lighting Decrease')..' '..rearCptSuffix, category = {_('Illumination'), _('Rear Cockpit')}},
{pressed = device_commands.Button_130, cockpit_device_id = devices.LIGHTS, value_pressed = 1, name = _('Instrument lighting Increase')..' '..rearCptSuffix, category = {_('Illumination'), _('Rear Cockpit')}},

{pressed = device_commands.Button_128, cockpit_device_id = devices.LIGHTS, value_pressed = -1, name = _('Console integral lighting Decrease')..' '..rearCptSuffix, category = {_('Illumination'), _('Rear Cockpit')}},
{pressed = device_commands.Button_128, cockpit_device_id = devices.LIGHTS, value_pressed = 1, name = _('Console integral lighting Increase')..' '..rearCptSuffix, category = {_('Illumination'), _('Rear Cockpit')}},

 

I tried to get some inspiration in similar topik for A-10C II or Mi-8, but well, not so much luck until now.

 

If anyone, or a dev, can help, that would be greatly appreciated ^^

 

Thanks !

  • Like 1

uc?export=view&id=1AItkXXY4CO-guOrEzNTQM

Link to comment
Share on other sites

  • 5 months later...

Not sure it's all of them, but better than nothing 😄

 

Maybe @Munkwolf can incorporate them into his Community Keybinds project? If it saves the Aerodev guys some dev time, happily put it into one of the next patches.

 

C-101EB

 

		{action = device_commands.Button_3, cockpit_device_id = devices.ARN127, name = _("Extra - VOR-ILS-MB DIMMER")},
		{action = device_commands.Button_7, cockpit_device_id = devices.ARN127, name = _("Extra - VOR-ILS-MB DIMMER NAV VOL")},
		{action = device_commands.Button_12, cockpit_device_id = devices.ARN127, name = _("Extra - VOR-ILS-MB DIMMER (Rear Cockpit)")},
		{action = device_commands.Button_16, cockpit_device_id = devices.ARN127, name = _("Extra - VOR-ILS-MB DIMMER NAV VOL (Rear Cockpit)")},

		{action = device_commands.Button_11, cockpit_device_id = devices.ARC164, name = _("Extra - UHF Volume control")},
		{action = device_commands.Button_15, cockpit_device_id = devices.ARC164, name = _("Extra - UHF Cover")},
		--!!! turns front seat knob!!! {action = device_commands.Button_36, cockpit_device_id = devices.ARC164, name = _("Extra - Volume control (Rear Cockpit)")},
		{action = device_commands.Button_40, cockpit_device_id = devices.ARC164, name = _("Extra - UHF Cover (Rear Cockpit)")},
		{action = device_commands.Button_14, cockpit_device_id = devices.ARC164, name = _("Extra - UHF Digital Display Dimmer")},
		{action = device_commands.Button_39, cockpit_device_id = devices.ARC164, name = _("Extra - UHF Digital Display Dimmer (Rear Cockpit)")},

		{action = device_commands.Button_161, cockpit_device_id = devices.SYSTEMS, name = _("Extra - HSI Digit Brightness")},
		{action = device_commands.Button_443, cockpit_device_id = devices.SYSTEMS, name = _("Extra - HSI Digit Brightness (Rear Cockpit)")},

		{action = device_commands.Button_165, cockpit_device_id = devices.SYSTEMS, name = _("Extra - ADI Pitch Adjust")},
		{action = device_commands.Button_600, cockpit_device_id = devices.SYSTEMS, name = _("Extra - ADI Pitch Adjust (Rear Cockpit)")},

		{action = device_commands.Button_229, cockpit_device_id = devices.SYSTEMS, name = _("Extra - ADJUST RED LIGHT - TOP CENTER PANEL")},
		{action = device_commands.Button_640, cockpit_device_id = devices.SYSTEMS, name = _("Extra - ADJUST RED LIGHT - TOP CENTER PANEL (Rear Cockpit)")},

		--!!! operates like a button press +/- along the axis!!!{action = device_commands.Button_237, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Airspeed Indicator Bug")},
		--!!! operates like a button press +/- along the axis!!!{action = device_commands.Button_491, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Airspeed Indicator Bug (Rear Cockpit)")},

 

C-101CC

 

-- no funtion? {action = device_commands.Button_670, cockpit_device_id = devices.LIGHTS, name = _("Extra - Gunsight Sun Filter")},
-- no funtion? {action = device_commands.Button_671, cockpit_device_id = devices.LIGHTS, name = _("Extra - Gunsight Sun Filter (Rear Cockpit)")},

{action = device_commands.Button_310, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Sight Brightness")},
{action = device_commands.Button_654, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Sight Brightness (Rear Cockpit)")},

{action = device_commands.Button_343, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Canopy emergency fracturing")},
{action = device_commands.Button_652, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Canopy emergency fracturing (Rear Cockpit)")},

{action = device_commands.Button_990, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Canopy emergency fracturing safety pin")},
{action = device_commands.Button_991, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Canopy emergency fracturing safety pin (Rear Cockpit)")},

{action = device_commands.Button_554, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Telebriefing Brightness")},

{action = device_commands.Button_322, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Synchronizer and Heading Set")},

{action = device_commands.Button_323, cockpit_device_id = devices.SYSTEMS, name = _("Extra - Latitude Correction")},

{action = device_commands.Button_345, cockpit_device_id = devices.SYSTEMS, name = _("Extra - AOA indicator knob")},

{action = device_commands.Button_653, cockpit_device_id = devices.SYSTEMS, name = _("Extra - AOA indicator knob (Rear Cockpit)")},

{action = device_commands.Button_704, cockpit_device_id = devices.SYSTEMS, name = _("Extra - MPR Lamp Test Brightness")},
{action = device_commands.Button_705, cockpit_device_id = devices.SYSTEMS, name = _("Extra - MPR Lamp Test Brightness (Rear Cockpit)")},

 

  • Like 1
  • Thanks 2

DFsig.png

Hardware: MSI B450 Gaming Plus MAX | Ryzen 5 3600X (6*3.8 Ghz) | 32 GB RAM | MSI Radeon RX5700 | Samsung SSD 860 QVO 1TB | DCS dedicated @ WD Blue 500 GB SSD | Win 10 (64-bit) | TM Warthog HOTAS, MFD and rudder pedals, TrackIR5

 

Wishlist:  Northern Germany/Baltic Sea theater | Full Fidelity Su-25A | Asset packs (80s Iran, Lebanon 1982, Syria 2011+ factions)

Link to comment
Share on other sites

Just added a bunch of axis binds to the keybinds project. I'll go through the button binds sometime in the next few weeks and see what I can add on that front (a few other modules I want to update first)

 

+ Many of the binds are for a range of 0 to 1 (vs a default axis operating from -1 to 1), so some axis tuning will be required. Volume and lights knobs, for examples.

+ Some of the binds (like Course and Heading) are relative.. and will need heavy axis tuning to be usable (like Y-Sat around 5, and deadzone of 10 or 20).

+ I removed the CC's gunsight filter from my code commit as I didn't notice it doing anything. Should I add it back in?

 

Here's what I ended up with.. basically what Desert Fox had plus some that were in the clickable_common file shared between the CC and EB.

 

CC: https://github.com/Munkwolf/dcs-community-keybinds/blob/main/InputCommands/C-101/Input/C-101CC/joystick/default.lua

 

EB: https://github.com/Munkwolf/dcs-community-keybinds/blob/main/InputCommands/C-101/Input/C-101EB/joystick/default.lua

 

(files formatted for use with Quaggles Mod)

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

Cheers for adding it and in general for your work on the project, it's a great help!

 

With the gun sight sun filter i don't know if it is a dead entry that just was not deleted yet from the file or if it is an entry for a feature not yet included. I just left it in for completeness but i think it does not hurt when deleted either. If this feature comes later maybe, well remember. Or AeroDev does in the first place.

  • Like 2

DFsig.png

Hardware: MSI B450 Gaming Plus MAX | Ryzen 5 3600X (6*3.8 Ghz) | 32 GB RAM | MSI Radeon RX5700 | Samsung SSD 860 QVO 1TB | DCS dedicated @ WD Blue 500 GB SSD | Win 10 (64-bit) | TM Warthog HOTAS, MFD and rudder pedals, TrackIR5

 

Wishlist:  Northern Germany/Baltic Sea theater | Full Fidelity Su-25A | Asset packs (80s Iran, Lebanon 1982, Syria 2011+ factions)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...