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

[Feature request] Compatibility with gyroscope. #18

Open
shivamkantprasad opened this issue Nov 21, 2024 · 5 comments
Open

[Feature request] Compatibility with gyroscope. #18

shivamkantprasad opened this issue Nov 21, 2024 · 5 comments

Comments

@shivamkantprasad
Copy link

I wanna make a controller with motion control like in PS controllers. I want to have an option to send gyroscope data to pc like some controllers send. It would be greatly appreciated if you could add this feature.

@lemmingDev
Copy link

Would be trivial to simply manually map gyroscope data to left analog x and y etc...

@Mystfit
Copy link
Owner

Mystfit commented Nov 23, 2024

I agree with what @lemmingDev suggessted, mapping the gyro to existing axis inputs would be the easiest way to accomplish this as then it would be compatible with all games that use analog joysticks. I've previously done something similar by mapping a hall effect magnetic sensor to triggers.

The only controllers I can think of that pass dedicated gyro information along to a PC are the Dualsense controllers. I think they're compatible with Steam natively, but you'd still have to use Steam Input to map the gyro to standard controller axes.

Can you provide some examples of gyroscopic game controllers that send data to the PC and any games in question I can look at as an example?

@shivamkantprasad
Copy link
Author

switch pro controller does send data to pc and many switch emulator can use that data to do stuff.

@shivamkantprasad
Copy link
Author

Would be trivial to simply manually map gyroscope data to left analog x and y etc...

well if I would do that that will not let me also have two analog sticks

@Mystfit
Copy link
Owner

Mystfit commented Nov 29, 2024

switch pro controller does send data to pc and many switch emulator can use that data to do stuff.

It sounds as though we're specifically talking about Switch Pro controllers then. I did find a HID descriptor for a pro controller that we could use as a starting point and we could extend the XBoxGameController class using this HID descriptor instead.

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

3 participants