-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oculus Touch Support? #2
Comments
Joy2OpenVR is agnostic to controllers, but uses OpenVR Input Emulator, so the game must use OpenVR and not Oculus SDK If Input Emulator works in a particular game (ie. changing controller offset), Joy2OpenVR should works |
Thanks, I only had time to try with Cyber Threat, and the Steamvr interface. Input emulator worked for setting the offsets, and I could see that Joy2OpenVR was receiving input from the controller but nothing was getting passed on to Steamvr. The Oculus controllers worked fine on their own, all button presses worked. |
My program is only an interface to Input Emulator command line tool, so, for example, to press the grip button on controller id #1 it does:
where 1 is controller ID and 2 is the grip button id as listed in https://github.com/ValveSoftware/openvr/blob/master/headers/openvr.h#L727-L754 trigger and trackpad are axes, so it's a bit different, but still simple. Here you can find some usefull batch for testing. Maybe Oculus uses different ID mapping? I don't own an Oculus Rift for testing, but if someone find the right syntax I should fix the program. If @matzman666 could read this, he could help us |
Thanks so much! I won't be able to try this out until Monday, but I can't wait! |
Ok, I have worked on this for a while and this is what I have found. Using the attached oculus.ini file (My device ID's are 5 (left) and 6 (right) because I have 4 Rift sensors) here is what happens. |
The trigger should act as the real trigger: when you press the topshot one, the SteamVR controller trigger is pressed and held, when you release it the SteamVR trigger is released. This problem only occurs when you play with Oculus Touch? Did you try the scripts attached to the previous message? The touch thumbstick may need different commands sequence from the Vive Trackpad, but I don't know how to test it. BTW, how do you track the gun, with Oculus? |
You are correct, the trigger works fine with Vive but not Rift. |
Simply execute them and look what happens. Edit config.bat with controller ID This is just for testing, those scripts are very simple, take a look at trackpad-up-press.bat
means:
a thumbstick is different from a trackpad, What could be the correct sequence, assuming the Input Emulator can correctly handle the touch? I don't know, as I don't own the touch, But you could do some tests possible commands are: buttonevent
axisevent
|
Tried with my Oculus touch and did not seem to work. Are there some syntax changes to the ini file that need to be done, or is the Touch not supported? I love to have multiplayer and it would be great if I could level the playing field between Team Oculus and Team Vive!
Thanks again for everything!
The text was updated successfully, but these errors were encountered: