boyestrous / 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
18 stars 1 forks source link

(Index) touchpad HAT switch sometimes presses opposite direction right after an input #22

Open InsaneGrox opened 1 year ago

InsaneGrox commented 1 year ago

I don't know quite how to describe what's happening but it makes pip management almost impossible, restarting the app completely fixes it for a while before it starts happening again, this was a bug on the original elite VR cockpit as well IIRC. I'm unsure if this happens with other controllers.

https://github.com/boyestrous/elite-vr-cockpit/assets/54233743/0c453224-cd04-45ca-92c4-55155bb1535f

boyestrous commented 1 year ago

Thank you for sending this! It looks like the "release" action isn't happening properly and I'm wondering if it has something to do with the way that trackpad is configured in the VR bindings. I had to create those "blind" because I don't have index controllers.

I have a few questions:

  1. How long do you usually have before this starts happening? Are you getting 20 minutes of playing before you have to restart or 2 minutes?
  2. Do you notice this starts happening after switching into or out of a specific mode, like galaxy map or FSS mode?
  3. In the video, around 0:18, can you confirm that you're pressing the trackpad just once each time? I just want to make sure I'm understanding the problem correctly.
  4. I can't see the holographic power distribution panel in your video. Does this same behavior happen when you click on the holographic panel as well?
InsaneGrox commented 1 year ago

1: It varies a lot 2: I'll keep you posted if I do notice specifically after one of those 3: I'm swiping in a direction, though again, restarting the app fixes the issue so it likely isn't that. 4: nope, it's input related. Will update later if I see it happen again with more info

InsaneGrox commented 1 year ago

UPDATE: I think I found the cause, it happens specifically after the elite dangerous window loses focus (from alt-tabbing or desktop+ pinned windows), which happens a lot since well, who doesn't play this game with either inara, EDDB (rip), or EDcopilot?

boyestrous commented 1 year ago

Oh interesting! Yeah, it's darn near unplayable without other tools open!

This helps, actually, I'm going to take a look at the types of events that get called when the window regains focus and see if I can come up with any theories...

Next time you're playing, if this happens, can you try toggling Menu Mode on and off? There are several overlay elements that are reset when that happens, so I'm curious if it'll fix anything.