mdovgialo / steam-vr-wheel Goto Github PK
View Code? Open in Web Editor NEWSteering wheel and joystick emulation using steamVR
License: MIT License
Steering wheel and joystick emulation using steamVR
License: MIT License
Pose matrix has correct position coordinates, but zeros in rotation.
Hello, your application is the only one which exists at the moment to emulate an joystick with VR Controllers. It is realy good because the range of it is relative. It can be compared to a joystick having a long extension on it. The problem is that vjoy is not recognizing any buttons, just axis and even if in windows it shows input for buttons it does not in games (tested with War Thunder). It would be good if you can fix this. Used a Rift S with its touch controllers.
Everything is in the title,
it would be nice if the "grabbable joystick" option worked with the double joystick mode.
Or maybe make a grabbable joystick + throttle mode. ( i was planning to use one of the second joystick axis for throttle )
Hello, using Steam VR with the latest update gives me this error. Anything can be done?
I'm almost there in P-Cars, but running into a problem mapping the right axis wheel through the configuration assignment menu for the custom gamepad. Counter-clockwise rotation maps fine for left turns as -Z. But not matter how I spin it, I can't get Z+ to register for right hand turns. Any ideas?
I've dug around to manually edit the cfg file, but it seems pcars has it locked under a proprietary format.
The trackpad-as-wheel might also be a good-enough improvement over the gamepad stick (especially with autocentering).
Thanks! It looks very promising! I keep trying to get into driving sims, but the lack of control on the gamepad has ruined it every time.
EDIT: Looks like I got it to work somehow. Unfortunately, it's not reliable enough for me to use as a wheel. I tried switching to the track pad (-X/+X) but that also turned out to be quite erractic in PCars. Oh well.
Instead of autocentering read forcefeedback to set the wheel "default" position
Wheel is in the right position, I can move it by grabbing it. So i booted up project cars 2 and it doesn't move the wheel in game or anything
Searching for left and right hand controllers
left and right hands found
selecting default
Traceback (most recent call last):
File "open-vr-pad.py", line 6, in
steam_vr_wheel.wheel.main('pad')
File "C:\Users\NAME\Desktop\steam-vr-wheel-master\steam_vr_wheel_dist\steam_
vr_wheel\wheel.py", line 132, in main
do_work(vrsystem, left_controller, right_controller, wheel, poses)
File "C:\Users\NAME\Desktop\steam-vr-wheel-master\steam_vr_wheel_dist\steam_
vr_wheel\wheel.py", line 26, in do_work
left_controller.update(poses[left_controller.id.value])
File "C:\Users\NAME\Desktop\steam-vr-wheel-master\steam_vr_wheel_dist\steam_
vr_wheel\vrcontroller.py", line 32, in update
self.yaw = 180 / math.pi * math.atan(pose_mat[1][0] / pose_mat[0][0])
ZeroDivisionError: float division by zero
Feature request to support using steam-vr-wheel in linux based operating systems using python-evdev or similar libraries. Given the vjoy interface that is presented here (just set button and set axis), at first glace it doesn't seem like a big jump to support another os via a wrapper.
I mostly wanted to create this issue to see if there are any plans already to do this, or if I could go ahead and start working on this myself.
Hey, I commented on your youtube video showing off the VR joystick about adding support for the WMR controllers. I've attached a picture of the debug using the double joystick script
looks like the sticks are showing up as Axis 2 and go from ~0 to ~1/-1 at the extremes for the X and Y.
If you need more information just let me know!
Thanks again for looking into this.
Using the gamepad mode, and all it does is spin around in circles. If I just use a xbox controller it works fine, but with the vive controllers bat file, it spins and cannot play any games.
Had it working a little up until today when it decided to just spin. Tried restarting games, etc.
I've tried to setup the wheel using the "custom wheel" setting in Project Cars 2, but it simply does not want to work. First, there is trouble registering the input, and then, even if it does detect the input from the wheel and assigns it to Vjoy X axis, it refuses to actually work in-game.
Could this be used to control an analog stick as if it were emulating a mouse using just position? I was thinking this could be used to play rail shooters
When mapping the steer left/right to controls in dirt rally 2, the game does not detect the x-axis movement until after turning the wheel 90 degrees to left/right. The in-game utility for viewing inputs also reports 0 movement until after crossing 90 degrees on either side, almost as if there was "deadzone". The windows controller properties properly display all rotation on the x axis.
EDIT: Never mind. Dirt Rally 2 has some dead-zone set by default. Making sure it's set to 0 solved it.
I'm running 2.5.2 with Oculus Rift+Touch. It shows up in SteamVR dashboard and seems to work fine there. But when I launch any game the wheel disappears and the vJoy controller no longer registers any input. Then when I quit back to SteamVR dashboard it comes back and works again. Launch a game, stops working, repeat.
It also made my Xbox One controller stop working or even registering in SteamVR and Oculus. But it still shows up in USB Game Controllers and registers input there. Maybe that's just vJoy though.
Any tips?
Json somewhere in standart location
I'm running on version 2.5.2 with a dell visor. When in the steam dashboard and house, my input workes fine and displays in the config menu. However, as soon as I get into a game, it stops working. If I move my mouse from the game window, it starts working again. I move it back, it stops working. Could this have something to do with steamvr taking ownership of the device?
Edit: The movements and events are still appearing in the debug mode.
This is completely broken. When I open the bat it says "C:\Users\Dj674\Documents\steam-vr-wheel-2.5.4a\steam_vr_wheel_dist>python.exe open-vr-wheel.py" I got it to work almost at one point. Was able to open it MULTIPLE times (not sure how not sure what I did) but then couldnt get it working in game and had to restart my pc. now its broken again. which makes no sense nothing is different so if it worked before it should work now and no build works NONE of them the only one that did work for a short time was 2.5.4
I get this when running the bat file, and have installed everything it asked for the release version (and the developer one, just to make sure)
C:\Users\User\Downloads\steam-vr-wheel-2.5.4\steam-vr-wheel-2.5.4>cd steam_vr_wheel_dist
C:\Users\User\Downloads\steam-vr-wheel-2.5.4\steam-vr-wheel-2.5.4\steam_vr_wheel_dist>python.exe open-vr-wheel.py
C:\Users\User\Downloads\steam-vr-wheel-2.5.4\steam-vr-wheel-2.5.4\steam_vr_wheel_dist>pause
Press any key to continue . . .
This results in uh, well, absolutely nothing happening in SteamVR...
Imagine that the trackpad is a wheel which you can spin, like in older IPODS.
That way you can have two axis/wheels/knobs which show up as seperate controls. Maybe could be used for aircraft dual throttle?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.