rajetic / auto_oculus_touch

Tools to allow AutoHotKey to read the state of the Oculus Touch controllers.
98 stars 20 forks source link

thumbstick press not registering #14

Open moginheden opened 5 years ago

moginheden commented 5 years ago

I'm using the vJoy script and it's working great for the most part, but I can't seem to register pressing in either thumbstick. Is this not mapped to a button?

moginheden commented 5 years ago

Note: moving the thumbsticks left/right or up/down does register, I'm talking about clicking them in.

moginheden commented 5 years ago

I've figured out a fix, but it should probably be merged into the base script. I had to increase the number of buttons in vJoy from 8 to 10, (not sure if 9 would have been enough, it might be.)

I also had to add these lines to the oculus_touch_vjoy.ahk script:

if pressed & ovrRThumb
    SetvJoyButton(8,1)
if released & ovrRThumb
    SetvJoyButton(8,0)

if pressed & ovrLThumb
    SetvJoyButton(9,1)
if released & ovrLThumb
    SetvJoyButton(9,0)
rajetic commented 5 years ago

Oops, I forgot those two. I'll add them in. Thanks.