Skip to content
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

Keyboard emulation #6

Open
suncryptjustice opened this issue Oct 8, 2018 · 14 comments
Open

Keyboard emulation #6

suncryptjustice opened this issue Oct 8, 2018 · 14 comments

Comments

@suncryptjustice
Copy link

Hi! I get link to ur project from reddit.
I need to emulate keyboard arrowpress as toucpad hold.
For ex. in normal games (not VR) mostly we use WASD or Arrows to move. In VR they force u to use touchpad. I really want to play from keyboard, Press arrow and move like i hold touchpad up direction. It's more userful for me. Is it real with Joy2OpenVR?
If no, then how hard is realisation of this? Maybe know some solutions?

@mmorselli
Copy link
Owner

it seems that I completely forgot the trackpad in the keyboard part :-) I should add it within a few days

@suncryptjustice
Copy link
Author

Dear mmorselli!
Hi again!
I wonder if you finished with the trackpad part=)

Also, I realized that I might have not expressed myself correctly.
I know that with Joy2OpenVR I can map controller to keyboard, but can I do reverse?

I mean, I want to be able to press W on keyboard and move in a VR game. Is it possible?
Thank again in advance!

@mmorselli
Copy link
Owner

just released the 0.11 beta, with keyboard to trackpad support

it's a basic support, this means that it manages up, down, left, right, no diagonals because it doesn't read two keys pressed at the same time, and touch or click must be declared in the config. But it works, tried with Gunheart. Look at the example config in the provided config.ini

Joy2OpenVR doesn't map controller to keyboard, but only external input (joypad or keyboard) to VR, so should do what you're asking.

try and let me know if it works

@suncryptjustice
Copy link
Author

Just to make myself completely clear:
Now I press trackpad up and it works like arrow up on pc.

What I need is press arrow up and have it work as trackpad up in VR.
So that I could sit in from of pc with helmet on and walk in say Pavlov VR by pressing keyboard arrow up. Is this possible? If yes - please kindly explain how do I do it, because I am breaking my brain here trying to figure it out.
Thank you!

@mmorselli
Copy link
Owner

Have you tried? In the example configuration I provided arrow (to controller 1) and WASD (to controller 2), of course you can choose the keys you like.

it's completely clear what you need, my program does exactly that.

trackpad1left = 71
trackpad1right = 72
trackpad1up = 73
trackpad1down = 74
trackpad2left = 0
trackpad2right = 3
trackpad2up = 22
trackpad2down = 18

@suncryptjustice
Copy link
Author

suncryptjustice commented Oct 18, 2018

Yes, thank you! It works, but not alsways.
I try in different games and in some it works in some it's not.
In games like Run Rooms, ProtonWars it works.
But in Pavlov and Arizona it doesn't work. Can that game block ur program?
Also sometimes I has freeze problem. When I run program it's freeze and only restart helps)
But anyway, in some of the games it works, and it's great!)

Update) With other games also work. I just should choose window of Joy2OpenVR.exe after i turn on the game.)

Thank you very much!:) You save my day!!!

And one more question. If I need touch then i just put false in trackpad1_click? or should change to trackpad1_touch?

@mmorselli
Copy link
Owner

simply put trackpad1_click = false and trackpad act as touch

@suncryptjustice
Copy link
Author

Mmorselli, thank you so much!

@suncryptjustice
Copy link
Author

suncryptjustice commented Nov 29, 2018

Dear morselli!
Hi again!
After latest Steam VR update, Joy2OpenVR stop working. I was installing InputEmulator SteamVR Fix, but it seems doesn't work for me. Can you give me some suggestions for my problem?

I mean, program works, when i press "up arrow" on my keyboard, joy2openvr write that i press "Trackpad 1 UP", but nothing happened in the game.

Also I can't pick v1527117754 hotfix anymore. Maybe this is a problem?

@mmorselli
Copy link
Owner

workaround published, see the readme in homepage

https://github.com/mmorselli/Joy2OpenVR/blob/master/README.md

@suncryptjustice
Copy link
Author

suncryptjustice commented Dec 18, 2018

Hi!
Just wanna try your decision. By the way, we can block update of SteamVR if we put StateFlags = 4 in file "appmanifest_250820.acf" in folder steamapps.

Seems doesn't work for me. Version is right. Downgrade was successful. But when i press keyboard buttons no reaction. I was install OpenVR Input, maybe I should use old release?

update) Works! Clean all mess from steamapp folder and re install OpenVR Input one more time. All works great) Hope soon we all can find solution for new SteamVR version:)

Ton of thanks to you. Before I was tryied downgrade to summer versions but it was useless.

upd. Movement is not smooth anymore. It look like where short press of button. Like it's pause after every press. Is it because of old version?

@mmorselli
Copy link
Owner

Thanks for StateFlags hint, I didn't know, I'll add it into the README

I just quickly tried a trigger button with beatsaber custom tracker-powered swords, still nothing with movement. I'll try as soon as possible with Serious Sam

@suncryptjustice
Copy link
Author

suncryptjustice commented Dec 18, 2018

Also try with Sam and Pavlov. I have the movement, but with issues. Trackpad is work. But it moves with lags. Always interruption.

In Pavlov it's really annoying, in Sam little bit better, but still not real to play)

I try to use it in different games and this what I get:
This is Pavlov VR
This is Arizona Sunshine
This is Serious Sam SE VR

All the time I hold the button.

@suncryptjustice
Copy link
Author

Hi! Do you have any update about our issue. Or after this beta we all stuck for a while?

Repository owner deleted a comment from BhavyClover Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants