KozGit / DOOM-3-BFG-VR

Doom 3 BFG VR: Fully Possessed. Doom 3 BFG with native Oculus Rift/Touch or OpenVR support
GNU General Public License v3.0
370 stars 52 forks source link

Require discrete press on Vive's touchpad zones. #119

Open Grant10k opened 7 years ago

Grant10k commented 7 years ago

Right now the touchpad on the Vive controller is broken up into 4 touch sensitive actions and a giant button. It would be great if instead the touchpad was broken up into 5 zones (center, left, right, etc) that each required pressing the button to activate.

The way it is now there are a few problems that keep coming up. Trying to teleport, but end up switching weapons in the process. Trying to use the flashlight button but your character shuffles around if you don't keep your thumb dead center, even when you're not pressing the button. What I've had to do is unbind grip button (default crouch, which I don't use) to be the flashlight button instead. This causes another problem where I'm constantly grabbing the PDA on my hip by mistake, but it's still less of an annoyance than running into walls when I'm just trying to turn on my flashlight, or running into walls because I'm inclined to keep my thumb on the button like I would with a real flashlight.

The way I'd expect it to work is to strafe left, you'd put your thumb on the right side of the pad and click down to actually start moving. To switch weapons, you'd put your thumb on the bottom of the other pad and click down once per weapon.

I foresee an issue where the movement pad would be just a little harder to use because you wouldn't be able to drag your thumb around like it were a joystick anymore (what if you want to go from strafing left to right? Does the flashlight activate?) For the gun-holding controller this wouldn't be an issue at all, but I think the solution might be a hard-coded exception for the center button (when you drag your thumb around the touchpad while it's clicked, hit every button along the way except for the center one).

CarlKenner commented 7 years ago

I do something like this in Dolphin VR. But in Dolphin VR I made it so you can have the same touchpad work as an analog stick and separate buttons at the same time. I had to do that because the GameCube controller simply has more controls than the Vive, and even the Wiimote & Nunchuk with their insufficient buttons have more controls than the Vive.

I'll see if I can come up with a good solution.

KozGit commented 7 years ago

There are some click to move options, but unfortunately they don't currently support using the pad as a button to simultaneously turn the flashlight on/off.

I don't have my Vive set up at the moment to test to make sure we didn't break them, but check the vr_moveClick cvar if you want to experiment. There are several different modes to chose from. ( press ~ to open console, then vr_moveClick to list the available options )

In the interim, you can also adjust the pad deadzone if you think it would help. ( vr_padDeadzone )

I need to decide how I want to implement discrete directional pad clicks as a bind option, I'm really trying to stay away from completely hard coded controller configs, but might have to compromise to some degree.

( And yeah, it really would be nice if the Vive controllers had an extra button or two. )

jdawgzim commented 7 years ago

Platform: Vive Problem: Accidentally switching weapons when trying to teleport.

I don't really have a problem with the rest of the things. Moving a little is not a big issue accept for the acceleration causing sickness. Avoid pressing the left and right side for strafing and turning is not a big issue. Though sometimes turning gets stuck and I spin around continuously. Accidentally switching to fists or other unintended switching in the middle of a fight is a big issue.

Solution: Maybe implement a click down on top/bottom for switching weapons on Vive.

Different Problem: My holstered weapon disappears a lot when level loads or I pick up a power up or other random times.

It sucks to reach down to grab my Plasma Rifle and I get fists. :-(

jdawgzim commented 7 years ago

TEMP SOLUTION: I tried teleportation on left hand like it is in most other games. It helped in two three big ways.

1) Now I don't accidentally switch weapons since I keep my right thumb away from weapon switching.

2) Gun hand and teleport hand should always be opposite because I want to shoot one way and move another way. In fact it's made the game a lot more fun. I feel like a ninja badass dodging fireballs and moving right up to the demons and stuffing my shotgun in their mouth

3) I get less motion sick because now I don't use sliding movement to dodge fireballs

HTC VIVE button layout starting from the default: LEFT MENU BUTTON: Flashlight LEFT CENTER PAD CLICK: TELEPORT LEFT GRIP BUTTON: Unmute Mic for Voice Commands (The IRL crouching works great) RIGHT CENTER PAD CLICK: Whatever you want (left grip button still works for grabbing PDA)

This layout has made Doom 3 VR three times more fun for me!