Jump to content

Recommended Posts

Posted

Posted this in DCSW area and got no replies. I guess this seems to be the more appropriate forum.

 

How can I change the command assignment of joystick device buttons that are automatically assigned in DCSW to windows DX buttons? For example, I wish to assign the BRT rocker switch on my Cougar MFD to operate the master switch in the sim. The F-16 MFD 1 .lua script shows the BRT rocker assigned to DX buttons 25 and 26 and the sim action ( I presume) to iCommandPlaneLeftMFD_BRT_Increase (and Decrease).

 

Is the sim behavior determined by the DX button assigment (simply change the button numbers), or by the DOWN and UP (iCommandPlaneLeftMFD_BRT_Increase) command (seems unlikely)?

 

Is there another .lua script that defines the in-sim behavior of the DX buttons where I can assign them to the master switch? or

 

Can I replace the iCommandPlaneLeftMFD_BRT_Increase command with the master switch keyboard assigment or with the iCommandPlaneAHCPMasterArm command??

 

I doubt this is hard-coded in the game. How does this work?

Posted

May I ask why you're working directly with the lua files? It sounds like for what you're trying to do, just going through the UI would be much simpler.

 

In my experience, the only time you need to get into the lua files is if you have a controller that has a switch or rocker for which one of the directions doesn't get recognized in DCS. For example on the Warthog throttle, there is a 3-position LASTE switch, the middle position of which, ALT/HDG, is electrically 'zero' and thus does not get recognized as a discrete position or press within DCS. Actually DCS sets the Warthog up for you, but if you had to do this yourself, first you'd go into the UI and assign the LASTE 'up' and 'down' positions by pressing each of them; then you'd go into the lua file and for each of those two buttons that you just assigned, you'd have to add a "up = iCommand..." command that would represent the middle position.

 

But it doesn't sound like you're doing anything this complex. I used to have the MFDs too and I'm pretty sure that both BRT up and down show up as discrete button presses in the DCS UI, don't they? In that case just double-click on the Master Arm function in the F-16 MFD 1 column, press BRT down or up, and you should be good to go.

Posted

Yes, this seems like it should be simple; however, in the options>>controls applet if one clicks on (for example) the Left MFD desired command of DSP Up, only Joy buttons are assignable, not keyboard commands. If one clicks on the AXIS ASSIGN button at the bottom, only axis commands are available. If anyone knows how to accomplish my objective, I am open to suggestions.

Posted

Sorry, I must not be understanding what you're trying to do here ...

 

I assume you meant BRT up instead of DSP up above. In that case, if you want to assign BRT up to activate Master Arm within DCS, why do you need to get key commands involved? You can just find the Master Arm row in the UI, scroll over to your F-16 MFD 1 controller, double-click on the field there, then push BRT up on your MFD, and that's it. No?

 

As long as you're trying to assign commands to your MFD that already exist within DCS, you never need to get key commands involved; you can just directly map each MFD button to each command within the UI.

Posted

Appreciate your suggestions, but no joy. When I double-click the the Master-Arm function in the options>>controls MFD 1 column, it does not highlight, nor invoke the button assignment applet. When I push the BRT rocker on the device, nothing happens. I can only assign any Windows Joy button to any device button.

Posted

I've tried to follow GregP's intruction to assign some of my warthog switches in FC3

 

For instance I wanted the RDR ALTM switch to toggle the radar on and off (in the F-15) by default the sim only recognise the NRM position.

 

this is the default line :

{combos = {{key = "JOY_BTN25"}, }, down = iCommandPlaneRadarOnOff, name = "Radar On/Off", category = "Sensors"},

and I've added this one :

{combos = {{key = "JOY_BTN25"}, }, up = iCommandPlaneRadarOnOff, name = "Radar On/Off", category = "Sensors"},

But no joy :(

Now the sim only recognise the DIS position

 

 

Anyone gots an idea ?

  • Recently Browsing   0 members

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