Emulating Xbox360 controls on Oculus Rift controllers

Ask gaming related questions
kevolusean
Posts: 1
Joined: 27 Oct 2020, 09:30

Emulating Xbox360 controls on Oculus Rift controllers

Post by kevolusean » 27 Oct 2020, 10:04

Hi! I hope this is the right place to ask for help :)

Long story short, there are some VR games that do not support motion controls, but support gamepad/xbox controllers.

I have a script that sends the Rift controller inputs to a virtual Xbox controller (need to have vJoy and ViGEmBus installed to work).

So, 'A = A', 'X = X', 'RTrigger = RTrigger', 'Right stick axis = right stick axis', etc. The only buttons that aren't on the Rift controllers are the D-pad buttons. The script has been setup to use the Rift 'Grip buttons' as modifiers. While 'R/LTrigger = R/LTrigger', 'RGrip = Modifier1' and 'LGrip = Modifier2'.

I had tried to set up the AHK so that, 'Left stick = Left stick', and 'LGrip + Left stick = Dpad direction'. However, when I run the script, 'Left stick = nothing' and 'LGrip + Left stick = Left stick AND Dpad direction'. :/ (also want 'RGrip + Rstick UP/DOWN = LB/RB', but didn't get that far yet....)

Originally this is someone else's script, so apologies if this is a bit all over the place! I have also tried to use UCR and x360ce, but neither have borne me much luck.

Any help would be greatly appreciated! This is definitely reaching way beyond my limits.

https://p.ahkscript.org/?p=84873b1a - here is my modified script

https://p.ahkscript.org/?p=e7635ac9 - here is the original script that I butchered.
User avatar
zerohour27
Posts: 3
Joined: 03 Nov 2020, 13:03

Re: Emulating Xbox360 controls on Oculus Rift controllers

Post by zerohour27 » 03 Nov 2020, 22:10

I have also tried to use UCR and x360ce, but neither have borne me much luck.
Sorry i haven't tried it, but i'd try to use UCR with vjoy and XOutput. UCR to bind the keys as input for the vjoy controller. Then use XOutput to convert the vJoy controller to an Xbox360 controller. It should work.

If you wanna check it out, i attached a version i found a few years ago and still use. There's a readme inside with instructions on how to install. If the install button doesn't work, you can force install (it worked for me). I found a LOT of different colors, sizes and types of this same program. Or at least it is supposed to be the same program.

Here's the source:
https://github.com/Stents-/XOutput

It converts your controller to an Xbox360 controller (Xinput).

Sadly, I can't help you with the ahk script, as i'm very new to autohotkey, but good luck. :thumbup:
Attachments
XOutput.v0.11.zip
(1.54 MiB) Downloaded 3 times
Post Reply

Return to “Gaming”