Jump to content

HMD brightness axis?


DrGarantia

Recommended Posts

Found it in the default.lua for joysticks... looks WIP:

 

-- HMD

--{ action = _AXIS, cockpit_device_id = , name = _('HMD OFF/BRT Knob'), category = {_('Instrument Panel')}},

Investiagting further... clickabledata.lua in Cockpit\scripts:

 

-- Helmet

elements["pnt_136"] = default_axis_limited(_("HMD OFF/BRT Knob"), devices.HMD_INTERFACE, hmd_commands.BrtKnob, 136, 0.0, 0.1, false, false, {0,0.75})

So try editing the top one and change it to this:

 

-- HMD

{ action = hmd_commands.BrtKnob, cockpit_device_id = devices.HMD_INTERFACE, name = _('HMD OFF/BRT Knob'), category = {_('Instrument Panel')}},


Edited by Eldur

dcsdashie-hb-ed.jpg

 

Link to comment
Share on other sites

HMD Brightness Knob Solution

 

Open file in the Your Install\Mods\aircraft\FA-18C\Input\FA-18C\keyboard\default.lua in Notepad++. Find this line:-- HMD Knob. Replace the 2 lines below it with these:

 

 

{    pressed = hmd_commands.BrtKnob,                                    cockpit_device_id = devices.HMD_INTERFACE,                            value_pressed = -0.5,    name = _('HMD OFF/BRT Knob - CCW/Decrease'),            category = {_('Instrument Panel')}},
{  pressed = hmd_commands.BrtKnob,                                    cockpit_device_id = devices.HMD_INTERFACE,                            value_pressed =  0.5,    name = _('HMD OFF/BRT Knob - CW/Increase'),                category = {_('Instrument Panel')}},


Edited by Habu_69
Link to comment
Share on other sites

I cannot seem to find the keyboard items for these 2 commands in my revised keyboard default lua after making the above changes. What am I doing wrong?

Trackir4 using the latest Trackir 5 software, Win10 Pro [Creator Update] updated from Win7Pro Pro 64Bit, Intel® Core™ i5-2500 3.30 GHz 6M Intel Smart Cache LGA115 , GigaByte GA-Z68XP-UD4 Intel Z68 Chipset DDR3 16GB Ram, GTX MSI Gaming 1060 [6 GB] Video Card, Main Monitor 1 on left 1920x1080 Touchscreen Monitor 2 on right 1920x1080 .

Link to comment
Share on other sites

Eldur

I tried the above but perhaps I did not understand your instructions as it did not work for me. I tried to bind the axis to the INCR/DECR lever on the WH Throttle.

Trackir4 using the latest Trackir 5 software, Win10 Pro [Creator Update] updated from Win7Pro Pro 64Bit, Intel® Core™ i5-2500 3.30 GHz 6M Intel Smart Cache LGA115 , GigaByte GA-Z68XP-UD4 Intel Z68 Chipset DDR3 16GB Ram, GTX MSI Gaming 1060 [6 GB] Video Card, Main Monitor 1 on left 1920x1080 Touchscreen Monitor 2 on right 1920x1080 .

Link to comment
Share on other sites

Sobe, put a comma at the end of the second line (in red below):

 

{ pressed = hmd_commands.BrtKnob, cockpit_device_id = devices.HMD_INTERFACE, value_pressed = -0.5, name = _('HMD OFF/BRT Knob - CCW/Decrease'), category = {_('Instrument Panel')}},

{ pressed = hmd_commands.BrtKnob, cockpit_device_id = devices.HMD_INTERFACE, value_pressed = 0.5, name = _('HMD OFF/BRT Knob - CW/Increase'), category = {_('Instrument Panel')}},

Link to comment
Share on other sites

Eldur

I tried the above but perhaps I did not understand your instructions as it did not work for me. I tried to bind the axis to the INCR/DECR lever on the WH Throttle.

My thread "DCS: F/A-18C Hornet » Controller Questions and Bugs » JHMCS Controller Bindings" shows 3 solutions that work; 2 solutions for switches and one for an axis

LeCuvier

Windows 10 Pro 64Bit | i7-4790 CPU |16 GB RAM|SSD System Disk|SSD Gaming Disk| MSI GTX-1080 Gaming 8 GB| Acer XB270HU | TM Warthog HOTAS | VKB Gladiator Pro | MongoosT-50 | MFG Crosswind Pedals | TrackIR 5

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...