-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feature request] Gyroscope/accelerometer display #8
Comments
I would like to add this. The easiest way would probably be an icon. Unfortunately I have very little free time and I haven't been able to figure out how to read the gyro in the backend (hid.js). If someone more familiar with HID can help, I could probably get something working on the front end. |
The gyro isn't being parsed in hid.js, but the data should be in the event array. |
Sorry to resurrect an old thread, but did the gyro ever get figured out? I know there is an app called 3D Controller Overlay, that maybe this project could merge with. I don't know the specifics on how the data is being transferred (my programming knowledge is limited to DevSecOps), but I'm willing to help bring this back to life. I even made a 3D model of the controller and tried to import it into the 3D Controller Overlay app... but the gyro doesn't get registered. |
Hi there! Happy to see some attention here. As mentioned by hdansin, the gyro data isn't yet parsed but it shouldn't be too hard to implement (see the file from the linux kernel linked by thorsb). When I initially made this (long enough ago that I barely remember it), I think I didn't parse gyro data because it's trickier than the rest. If I remember correctly, the controller doesn't send any gyro data unless the gyro is explicitly enabled (by a game / steam input / etc), which makes debugging somewhat hard. This might also be what you're facing with 3D Controller Overlay, have you tried it in-game (with a controller config that uses gyro) ? |
Thanks for the response! I did try with a game open, but I'm running into more issues than just the gyro.
I was speaking with Mennenth and he explained that Steam gives the Steam Controller raw-hid inputs that need to be translated/converted to allow the overlay to understand what the controller is doing. He recommended I reach out to Nielk1 for more info... but I ended up finding this repository and figured you might be able to assist. Rather than re-inventing the wheel we could use the work you've already done and find a way either mirror it for the overlay, or use the code as is to do the translation needed. Let me know your thoughts and if you are willing to assist or let me hijack your code. Thank you very much, and I look forward to your response :) |
A piece of software can send an HID feature report to the Steam Controller to enable gyro data output so it is not dependent on anything specific within Steam Input. Besides the example from the Linux kernel driver, here are a couple of examples of configuring the Steam Controller to send gyro data in the HID input report. One is a Python example and the other is written in C#. The C# version is probably a bit easier to read. https://github.com/Ryochan7/sc-controller/blob/python3/scc/drivers/sc_dongle.py#L314 Example of how the data is parsed in C# |
I thought I saw an issue for this somewhere before, but I couldn't find it so here we go.
Gyroscope could be done by rotating the controller itself, but adding another object below the main controller that rotates would also work. Accelerometer is in a similar situation, no visual display.
The text was updated successfully, but these errors were encountered: