Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Forcing a default input device.  (Read 1324 times)

0 Members and 1 Guest are viewing this topic.

Plowshare

  • Modder
  • member
  • Offline Offline
  • Posts: 639
Forcing a default input device.
« on: October 16, 2014, 05:19:09 PM »

I have a problem in that when I swap out my CH Fighterstick for my Saitek Pro Flight Yoke the yoke shows up as device 2 in the HOTAS section of the controls board while the Fighterstick is default device 1. Is there some way to force the yoke to become device 1?

I have to remove the stick from the computer and replace it with the yoke because I have two throttle quadrants and rudder pedals meaning I'm at the limit for input devices.

I have three installs of Il2 two of which are geared to having the yoke as device 2 so there is no problem there. Where the real problem arises is that 4.12.2 with benitomuso's Visual Mod 9 requires the joystick or yoke to be the default input device.

Any help?

Bob
Logged

marcost

  • Modder
  • member
  • Offline Offline
  • Posts: 1088
  • Keep calm and run away
Re: Forcing a default input device.
« Reply #1 on: October 17, 2014, 02:16:41 AM »

Hi Bob,

I'm not able to test but here's a thought: If you go into Users/yourpilot there is a file called settings.ini. Open with notepad and find the section:

[HotKey move]
JoystickDevice0 AXE_Y=elevator
JoystickDevice0 AXE_X=aileron
AXE_RX JoystickDevice3=trimelevator
AXE_RY JoystickDevice3=-trimaileron
AXE_RZ JoystickDevice3=trimrudder
AXE_RZ JoystickDevice2=rudder
AXE_U JoystickDevice3=-radiator
AXE_X JoystickDevice3=-pitch
AXE_Z JoystickDevice3=flaps
AXE_Z JoystickDevice1=-power

Swap the device numbers here for your 4.12 install and see if that works?

Regards,

M
Logged

Plowshare

  • Modder
  • member
  • Offline Offline
  • Posts: 639
Re: Forcing a default input device.
« Reply #2 on: October 17, 2014, 08:46:01 AM »

marcost:

I didn't think it would work and testing bears this out. Swapping the device number in this case simply transfers the action to the device number.

Example: For the test here's the top five lines in the original [Hotkey move] section:
  AXE_RZ JoystickDevice1=rudder
  AXE_X JoystickDevice3=trimaileron
  AXE_X JoystickDevice2=-flaps
  AXE_X JoystickDevice1=brakes
  AXE_X JoystickDevice0=aileron

Here's the altered section:
AXE_RZ JoystickDevice1=rudder
AXE_X JoystickDevice3=trimaileron
AXE_X JoystickDevice2=-flaps
AXE_X JoystickDevice1=aileron
AXE_X JoystickDevice0=brakes

As you can see I changed the brakes and aileron controls (I didn't want go whole-hog and change everything). What happened was that the left rudder pedal toe brake now controlled the ailerons and the joystick X axis controlled the brakes.

This shows that Device0 stayed Device0 and Device1 stayed Device1.

I'll keep hoping.

Bob

Logged

marcost

  • Modder
  • member
  • Offline Offline
  • Posts: 1088
  • Keep calm and run away
Re: Forcing a default input device.
« Reply #3 on: October 17, 2014, 01:04:09 PM »

Ok Bob I understand better now. Then I don't think the answer is within IL2, it's to do with the way Windows allocates device numbers to devices and apparently it will always assign the same number to the same device. These are stored in the registry.

So, maybe something like this utility is the answer:

http://theairtacticalassaultgroup.com/forum/showthread.php?t=13009

It allows you to edit the Windows ID number of your devices. But it says may not work with IL2...

If it doesn't, perhaps another route is to put a virtual joystick mapper between your devices and IL2. You could then have two profiles for the mapper depending on which version you are running. Something like vjoy:

http://vjoystick.sourceforge.net/site/

And this

http://www.autohotkey.com/board/topic/89279-ujr-universal-joystick-remapper-using-vjoy/

Good luck!

Martin
Logged
Pages: [1]   Go Up
 

Page created in 0.049 seconds with 28 queries.