-
Notifications
You must be signed in to change notification settings - Fork 35
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
[LINUX?] Controller button release event firing constantly & axis not working #2
Comments
Hey Ben, Thanks for testing. I did do some changes yesterday and just realised I haven't commited them yet. I'll do that in the morning. I don't have controllers atm so its very possible I made a mistake. I did order some touch controllers yesterday so once they are in I can test myself :) just have a look if you can see anything out of whack here: But note that code is about to change :) |
I don't know if you had any more time to look at things but I did commit those changes I talked about. Whether they make any difference, no idea. fingers cross my controllers should be arriving today and I can debug this |
I didn't have time yet - but hopefully this evening I can test it. |
I haven't tested the button events yet but the axis are working for me on my touch controllers. The mapping is really weird though. I think on the vive the trigger will probably be axis 4, not 2. I loop through 4 of the 5 axis and each has an x and y component, so x on axis 1, becomes axis 1 in Godot, Since the second axis on a vive controller is a trigger it only has a y which would become axis 4. I might need to add in some more smarts and do some sort of axis mapping.. |
Yep, can confirm axis work now - but as you said, they're mapped weirdly. |
I think this is our problem: Should be: I'll try it tonight |
This seems to fix it: |
Yep, that fixes it for me too. I thought a bit about the axis mapping issue, what do you think about using an approach similar to Godot's controller mappings? This way we could have the buttons and axis a bit standardized, and easily add new mappings. Not sure how "similar" VR controllers are though... |
@beniwtv where you still testing this on linux? I'm planning on putting a package together this weekend, it would be nice to confirm if the linux build is now working and maybe include a build in it as well. Btw, I don't know if you hang out on IRC/Matrix but we created a channel on freenode + room on matrix: #godotengine-vr |
Yep, was planning on testing the rumble PR sometime this weekend. As far as this issue - apart from the weird axis mapping, things work now. Will look into Matrix (have been wanting to test it anyway). |
Played around with this for a bit - great work so far!
I'm not sure if this is a bug specific to Linux (if so that bug might be in OpenVR):
This is on an HTC Vive with two vive controllers.
The text was updated successfully, but these errors were encountered: