Jump to content

[MOD] Joystick Axis for the Gunners


Recommended Posts

Hi,

 

Adding my old joystick to my setup as a radar stick for my Viggen, I thought there might be other use for it in other modules. Unfortunately ED don't think we should use joysticks for our guns. Luckily it was a rather easy thing to implement myself, and figured I share my tweaking with you.

 

I added the ability to assign joystick axis to the gunner controls. It works very well for ordinary aiming (Gunner profile, might need some Y saturation), but unfortunately not when having TrackIR enabled (no clue for VR). You can assign axes to the TrackIR Gunner profile if you like though.

 

The problem for the TrackIR Gunner profile is that the axes will act as mouse axes, not absolute position. If anyone has a solution, feel free to share!

 

 

Also, see "Unfortunately 2" below.

 

 

Anyhow, hope you enjoy!

OvGME enabled

 

/H

 

PS got it for the Huey too

Mi-8 Gunner Joystick Axis.zip


Edited by Holton181

Helicopters and Viggen

DCS 1.5.7 and OpenBeta

Win7 Pro 64bit

i7-3820 3.60GHz

P9X79 Pro

32GB

GTX 670 2GB

VG278H + a Dell

PFT Lynx

TrackIR 5

Link to comment
Share on other sites

Same for DCS 1.5.7

 

A slightly modified version for DCS 1.5.7 (might work with others).

 

---------------------------------

Unfortunately 1 !!!

(This DOES NOT apply to present DCS 2.5.2)

 

The default.lua in DCS World\Mods\aircraft\...

...Mi-8MTV2\Input\Mi-8MTV2_Gunner\joystick

...Mi-8MTV2\Input\Mi-8MTV2_TrackIR_Gunner\joystick

...Uh-1H\Input\UH-1H_Gunner\joystick

...Uh-1H\Input\UH-1H_TrackIR_Gunner\joystick

Are HardLinks of each-other!

 

So are default.lua in DCS World\Mods\aircraft\...

...Mi-8MTV2\Input\Mi-8MTV2_Gunner\keyboard

...Mi-8MTV2\Input\Mi-8MTV2_TrackIR_Gunner\keyboard

...Uh-1H\Input\UH-1H_Gunner\keyboard

...Uh-1H\Input\UH-1H_TrackIR_Gunner\keyboard

 

That means that the four default.lua in above joystick folders ARE THE EXACT SAME!

Changes in one will be present in the others!

And the four default.lua in above keyboard folders ARE THE EXACT SAME!

 

To make this MOD work in 1.5.7, you need to delete three of the joystick and three of the keyboard default.lua, then copy the joystick default.lua to the rest joystick folders, and the keyboard default.lua to the rest keyboard folders.

 

NOW you can use the 1.5.7 MOD.

---------------------------------

 

 

---------------------------------

Unfortunately 2 !!!

(this part goes for the present DCSW 2.5.2 too!)

 

The name.lua in Mi-8MTV2_TrackIR_Gunner and UH-1H_TrackIR_Gunner ARE ALSO HARDLINKS!

 

Open one. If it reads "return _('Mi-8MTV2 TrackIR Gunner')", delete the one in the UH-1H_TrackIR_Gunner folder, or if it reads "return _('UH-1H TrackIR Gunner')", delete the one in the Mi-8MTV2_TrackIR_Gunner folder.

Now create a new file name.lua and add the corresponding line.

This MIGHT apply to the Mi-8MTV2_Gunner and UH-1H_Gunner folders too, I simply don't remember.

 

If you do not doo this, one profile, either Mi-8MTV2_TrackIR_Gunner or UH-1H_TrackIR_Gunner, will not show in the 'Controls' window.

---------------------------------

Mi-8 Gunner Joystick Axis 1.5.7.zip


Edited by Holton181

Helicopters and Viggen

DCS 1.5.7 and OpenBeta

Win7 Pro 64bit

i7-3820 3.60GHz

P9X79 Pro

32GB

GTX 670 2GB

VG278H + a Dell

PFT Lynx

TrackIR 5

Link to comment
Share on other sites

  • 2 weeks later...
Thanks Holton. I have to try this one. Are you working on the Gazelle minigun too?
Don't own it.

But what I did here was just to look in the 'default.lua' in the 'Input\..._Gunner\mouse' folder and copied the three top lines and the axisCommands section to the 'default.ini' in the 'joystick' folder.

Compare the original files with the ones in this MOD, and see how I did it. Then you might be able to do it for the Gazelle by your self.

Helicopters and Viggen

DCS 1.5.7 and OpenBeta

Win7 Pro 64bit

i7-3820 3.60GHz

P9X79 Pro

32GB

GTX 670 2GB

VG278H + a Dell

PFT Lynx

TrackIR 5

Link to comment
Share on other sites

  • Recently Browsing   0 members

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