ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.22k stars 174 forks source link

[Feature Request] Add "Native Gyro" command option to Steam Input, for SDL2 purposes #8677

Open isaboll1 opened 2 years ago

isaboll1 commented 2 years ago

Steam Input currently has options for allowing Gyro within controllers to emulate various forms of Input such as mouse input, as well as joystick axis inputs. From what I can tell, Steam Input relies on SDL2 in order to expose functionality as well.

SDL2 itself offers functions to capture gyro axis from respective controllers, and some games/emulators actually make use of these functions in order to enable gyro controller support.

I am requesting for an option to be added in the Steam Input configurator for gyro input to be read as "Native Gyro", similar to the "Touchscreen Native" system command that's available for Steam Input on the Deck that allows for Touchscreen input to be recognized as actual multi touch, rather than mouse emulation. The "Native Gyro" command could expose the Steam Input controllers Gyro values to SDL2 as actual gyro axis, rather than having the Steam Virtual Controller exposed to SDL2 omit the gyro values only for mouse emulation or joystick axis emulation.

isXander commented 1 year ago

Vouch. This needs to be added and doesn't seem that difficult.

enjarai commented 1 year ago

This could definitely be useful for specific games/game mods that have native gyro support, it seems like an oversight to not have this option.

cuesta4 commented 4 days ago

This would be great. Many emulators moved to SDL2 and stopped using cemuhook for gyro, so basically you cannot use Steam Input with RPCS3, Ryujinx, CEMU and others if you want gyro.