Fishbiter / gz3doom

Classic Doom/Heretic/Hexen games in stereo 3D and VR; modified version of gzdoom.
http://rotatingpenguin.com/gz3doom/
125 stars 5 forks source link

Can't seem to rebind Vive left-hand trigger #15

Open Hyperlynx2 opened 5 years ago

Hyperlynx2 commented 5 years ago

No matter what I change ltrigger to in the gzdoom-username.ini, it always seems to +use. I'd really like to be able to rebind it to +speed or maybe +attack

StoniVR commented 5 years ago

its also on oculus touch i cant use the left trigger for secondary shot function. its also constant bind with use and u cant found this bind in the ini or change u cant do anything.

Hyperlynx2 commented 5 years ago

I've made some progress on trying to fix this myself!

I've discovered that what you set as joy4 in the ini file is what it uses for left trigger! In the default ini file, joy4 is bound to +use. So that's why that is happening!

I haven't figured out the original cause of the problem yet, though. I suspect HandleControllerState in gl_openvr.cpp will need to be changed, but maybe also whatever sets up the VRControllerState_t &newState that's passed in? I'll need to read up on OpenVR more.