vJoy Axis Detection by IL2 with Joystick Gremlin - or current.action and current.map editing
Hi all!
Just getting into IL2 in VR with Warthog HOTAS after doing tons of other sims, and loving it. Especially Career mode, really cool! Loving the realism. Started with simple engine stuff, 109s, but want to get deeper. To that end, I could use help mapping controls to vJoy axes.
I want to make it such that holding a hat on the stick temporarily makes the friction slider on the throttle control various things: mixture, water rad, oil rad, superchargers, etc. I can get all that functionality going in Joystick Gremlin and I can verify that the various axes of my second vJoy device are behaving correctly. It's sweet.
But I can't get IL2 to see the vJoy #2 axis movements, to assign them to the controls in the game. Starting with Axis X, axis 0, or vJoy #2, to be precise, that I want to be mixture. I can get it to see button presses from the same vJoy device, using Input Repeater in Joystick Gremlin, so it's not a device missing issue.
Here's what I have tried so far:
- I wrote a macro in JG (joystick gremlin) that, on button push, waits two seconds, them moves the vJoy axix to 0, then 0.5, then 1, then 0, then -0.5, then -1, then 0, with 0.5 sec pauses in between. I watch the JG Input Viewer and see vJoy 2 axis x clearly making these movings. When i push the button, then hit "retry" in il2 mapping panel, nothing happens. It doesn't see the axis movements. If I manually use the friction slider of the warthog hotas it detects and maps it. I know it see vjoy 2 buttons, as I can map those. Maybe it doesnt use axes from high numbered devices? I have not successfully detected any axis from a vjoy device. So that is TBC.
- I tried clearing my entire input folder. Restarting the game. Mapping the friction slider to mixture, so current.actions and current.map have "joy2_axis_t" or similar for mixture. Then i very carefully edit only those entires in both files to "joy5_axis_x" where i know joy5 is vjoy device #2 and verify that buttons from that device work. When i do this the game hangs on boot.
- I tried the above but with deleting the current.map file. This always hangs the game. I've seen people say that current.map is generated by the game, but every time I try to edit one or the other file, and boot the game, it hangs at end of red strip bar load. Do I need to turn off Steam Cloud? Removing the whole input folder correctly generates new clean controls. Is there somewhere else i need to update to be able to manually change things in the current.actions and current.map file? This would be my preferred method to map everything.
Attached is the grand scheme I'm going for. Thank you so much for any help!!!!!
Cheers