Controller Support with Steam Input #1481
handsomematt
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Better controller support has been added to s&box using Steam Input.
For users this means you can bind whatever you want easily.
For developers this means more access to controller contexts, like analog triggers, glyphs and button origins.
New methods
Input.UsingController
- true if the last input from a user was from a controller (accessible serverside too)Input.GetAxis( InputAnalog )
- get the raw analog axis from a controller, move / look / triggers.Input.GetGlyph( InputButton / InputAnalog )
- Get a controller-specific glyph texture for the bound InputButton ( if using controller )Input.GetButtonOrigin( InputButton / InputAnalog )
- Get context specific button, e.g InputButton.Jump would return 'SPACE' or 'A Button'Some unused values of InputButton have been obsoleted.
Default configs
There are default configurations for Xbox One and PS4 controllers, other controller types should derive nicely from these - if they don't let me know or even just push your own config to the community configs.
You can open the binding menu from Steam Overlay or from the settings menu in game.
Let us know if there's any bugs or additional functionality you want.
Beta Was this translation helpful? Give feedback.
All reactions