dantman / elite-vr-cockpit

A SteamVR Overlay providing a virtual throttle and joystick and holographic buttons for ship functions, with custom integration into Elite Dangerous
Other
326 stars 36 forks source link

Primary and secondary fire buttons for both controllers not binding #181

Closed Lukeb28 closed 4 years ago

Lukeb28 commented 4 years ago

Sorry if this is a dumb question, I spent a few hours trying to solve it already by uninstalling and reinstalling with slightly different settings as the set up document is hard to follow as a novice.

When trying to set the primary and secondary fire, the buttons on the UI with the axis are red and I cannot figure out how to set them without the buttons.

Is there a more in depth video on how to set this up? I saw one from V0.2 and it is way out of date and only covered the axis set up.

Thanks!

dantman commented 4 years ago

Which parts of the UI are red? The holographic buttons you put in the cockpit do turn red when you don't have a keyboard button for them. But the primary/secondary buttons on the joystick/throttle are hardcoded to vJoy joysticks buttons so they wouldn't specifically turn red.

If you have a HUD color matrix that turns the standard orange to red, then the stuff on the panels would look red even when there are no errors, but they'd still work.

Lukeb28 commented 4 years ago

image

No custom matrix, this is a fresh install after not playing a few years.

dantman commented 4 years ago

That's just dark orange, not red. I'm trying to make the UI panels look a little more like the in-game panels.

Lukeb28 commented 4 years ago

Ok, how is the assignment of those functions supposed to work? I can't get them to bind

dantman commented 4 years ago

If you open up ED's Controls menu and select a binding (e.g. Primary fire) so it brings up the "Press the button you want to bind"-like window you can press the "PRIMARY" button on the right to bind it (the same way you press the holo buttons).

Basically that panel in front of you has buttons on it that just momentarily emit the same joystick buttons/axis that the cockpit controls, etc output when you use them. So you can bind game controls to the various cockpit controls without having them in front of you.

If that is not working open the "vJoy Monitor" program that comes with vJoy. You can check if EVRC is outputting correctly to vJoy by pressing the buttons on that panel and checking that something changes in the vJoy Monitor window. EVRC uses vJoy devices #1 and #2 for different things so check both devices.

Lukeb28 commented 4 years ago

Ok with Vjoy monitor I cannot see any buttons doing anything besides the touch pad pressing arrow keys and space on center click, and none of the virtual buttons are indicating those, it's just like I am pressing them on my keyboard

dantman commented 4 years ago

That sounds like you are pressing things on your controller. Those won't do anything, while Menu mode is enabled those will always output arrow keys/space so you can navigate the menu.

What you want to do is touch one of the buttons on the panel in front of you and press it by pulling your trigger, just like the edit button and menu button you pressed.

Lukeb28 commented 4 years ago

Ok, while on the binding menu within elite and in binding mode, I pull the trigger (primary fire?) and nothing happens, it doesn't register an input and Vjoy monitor doesn't do anything. When I press the menu button (secondary fire) on either controller, the binding gets set to backspace, during all of this nothing comes up in Vjoy monitor or the cockpit log.

Thank you for being patient, I am getting frustrated because I am sure it's something I am doing wrong

dantman commented 4 years ago

I pull the trigger (primary fire?)

No, pulling the trigger is "InteractUI". You are "pressing" a button on the panel. So you have to be touching the panel button you want to press. It should also highlight when you touch it.

Lukeb28 commented 4 years ago

Ok I figured out what was wrong, I had to be holding the joystick by switching from menu mode while pressing the fire buttons to set the bindings. The left hat switch still isn't working but I can live with this for starting to relearn the controls.

Would it be possible to make it so you could bind those functions using the VR menu like the axis? Would be far more intuitive and consistent, that was to source of my confusion.

Thank you for making such an incredible add on! I've never felt more part of my ship!