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

Linux - "Invalid input type click for controller" #6

Open
Isopodus opened this issue Jun 13, 2022 · 3 comments
Open

Linux - "Invalid input type click for controller" #6

Isopodus opened this issue Jun 13, 2022 · 3 comments

Comments

@Isopodus
Copy link

Isopodus commented Jun 13, 2022

Hi there and thanks for your software.
Just trying to write some custom driver and found this one gonna be a nice template.
I've built the project for Linux and it started up (I can see the driver is loaded in logs), but the controls are not working, so I'm stuck looking at the home screed. Idk if that was necessary but I did the room setup procedure, just in case.

When looking through logs I saw a ton of the following messages:

Mon Jun 13 2022 22:49:23.820949 - Invalid input type click for controller (/user/head/proximity)
Mon Jun 13 2022 22:49:23.821208 - Invalid input type touch for controller (/user/hand/left/input/trackpad)
Mon Jun 13 2022 22:49:23.821250 - Invalid input type touch for controller (/user/hand/right/input/trackpad)
Mon Jun 13 2022 22:49:23.821291 - Invalid input type position for controller (/user/hand/left/input/joystick)
Mon Jun 13 2022 22:49:23.821310 - Invalid input type position for controller (/user/hand/right/input/joystick)

I didn't find any relative information for that, but after looking through the code a bit, I tried to log some data out of your GetPose function. So it seems like the rotation and position variables were not changing at all for both controllers and hmd, at this moment I noticed the GetAsyncKeyState, which is not implemented in Linux, so ignoring key presses became clear. But the error messages seem to be wrong. Did you have such messages on windows?

@r57zone
Copy link
Owner

r57zone commented Jun 14, 2022

Hi, probably the API has changed, I think need to create profiles like here https://github.com/r57zone/OpenVR-Additional-Arduino-Btns

If you just want to try moving with keyboard and mouse then you can try this driver https://github.com/r57zone/Half-Life-Alyx-novr but it will probably need to be changed so that it builds on linux

@Isopodus
Copy link
Author

Just as I said, I'm using it just as a template, so no need to make the keyboard buttons working.
About the profiles, do you mean the json files under resources/input? I remeber this line where you're pointing on a profile that needs to be created, probably.

// this file tells the UI what to show the user for binding this controller as well as what default bindings should
// be for legacy or other apps
vr::VRProperties()->SetStringProperty(m_ulPropertyContainer, Prop_InputProfilePath_String, "{null}/input/mycontroller_profile.json");

So in case I create a profile for the driver, I'll just need to set it like {sample}/input/profile_i_made.json? And put it into the folder ofc.

@r57zone
Copy link
Owner

r57zone commented Jun 14, 2022

yep

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