[MOD] Joystick Axis for the Gunners - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 08-26-2018, 10:55 PM   #1
Holton181
Member
 
Join Date: Feb 2015
Location: Far north
Posts: 963
Default [MOD] Joystick Axis for the Gunners

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
Attached Files
File Type: zip Mi-8 Gunner Joystick Axis.zip (3.8 KB, 11 views)
__________________
Helicopters and Viggen
DCS 1.5.7 and OpenAlpha
Win7 Pro 64bit
i7-3820 3.60GHz
P9X79 Pro
32GB
GTX 670 2GB
VG278H + a Dell
PFT Lynx
TrackIR 5

Last edited by Holton181; 09-11-2018 at 04:44 PM.
Holton181 is offline   Reply With Quote
Old 08-27-2018, 11:39 PM   #2
Holton181
Member
 
Join Date: Feb 2015
Location: Far north
Posts: 963
Default 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.
---------------------------------
Attached Files
File Type: zip Mi-8 Gunner Joystick Axis 1.5.7.zip (3.9 KB, 8 views)
__________________
Helicopters and Viggen
DCS 1.5.7 and OpenAlpha
Win7 Pro 64bit
i7-3820 3.60GHz
P9X79 Pro
32GB
GTX 670 2GB
VG278H + a Dell
PFT Lynx
TrackIR 5

Last edited by Holton181; 09-11-2018 at 04:44 PM.
Holton181 is offline   Reply With Quote
Old 09-11-2018, 04:45 PM   #3
Holton181
Member
 
Join Date: Feb 2015
Location: Far north
Posts: 963
Default

Updated the MODS due to forgetting some code, causing problems.
__________________
Helicopters and Viggen
DCS 1.5.7 and OpenAlpha
Win7 Pro 64bit
i7-3820 3.60GHz
P9X79 Pro
32GB
GTX 670 2GB
VG278H + a Dell
PFT Lynx
TrackIR 5
Holton181 is offline   Reply With Quote
Old 09-12-2018, 06:50 PM   #4
BaD CrC
ED Translator
 
BaD CrC's Avatar
 
Join Date: Dec 2008
Location: New Jersey, USA
Posts: 2,218
Default

Thanks Holton. I have to try this one. Are you working on the Gazelle minigun too?
__________________

8086K delid @5.1Ghz under EKWB Water, 2080Ti FE, 32Gb DDR4, 970Pro NvME.
BaD CrC is offline   Reply With Quote
Old 09-12-2018, 08:46 PM   #5
Holton181
Member
 
Join Date: Feb 2015
Location: Far north
Posts: 963
Default

Quote:
Originally Posted by BaD CrC View Post
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 OpenAlpha
Win7 Pro 64bit
i7-3820 3.60GHz
P9X79 Pro
32GB
GTX 670 2GB
VG278H + a Dell
PFT Lynx
TrackIR 5
Holton181 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:10 PM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.