This repository has been archived by the owner. It is now read-only.
Retrieve custom SDL2 controller mapping from environment variable #842
+114
−37
Conversation
Retrieve SDL controller mapping from environment variable. This is the environment variable defined by the official SDL2 Gamepad Tool.
Removed some apparently unnecessary logic which will only allow the look-right driveby animation to occur if you are in 1st person mode or if there is no passenger.
Added gamepad support. Open/close the menu by holding R1/RB & Triangle/Y. You can select menus and submenus and menu items with the cross/A button, and navigate backward with B/Circle. Also you can hit circle at the root menu to close it. Toggle menuitems with the cross/A button, or toggle backward with X/Square. Largely operates the same as the games frontend/pause menu. Todo: Properly implement autoscrolling for the gamepad. Ie, holding the stick or dpad down to quickly scroll through the menu / options Also, am only able to test on my linux/glfw setup. Might be handy to get some feedback on whether this is working as intended elsewhere
one character got flubbed on its way over.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Retrieve SDL controller mapping from environment variable.
This is the environment variable defined by the official SDL2 Gamepad Tool.