Skip to content
This repository has been archived by the owner. It is now read-only.

Retrieve custom SDL2 controller mapping from environment variable #842

Closed
wants to merge 4 commits into from
Closed

Commits on Nov 27, 2020

  1. Update glfw.cpp

    Retrieve SDL controller mapping from environment variable.
    This is the environment variable defined by the official SDL2 Gamepad Tool.
    ZLau92 committed Nov 27, 2020

Commits on Nov 28, 2020

  1. Fix Driveby animation /w Passenger

    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.
    ZLau92 committed Nov 28, 2020

Commits on Nov 30, 2020

  1. Debug Menu: Add initial gamepad support

    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
    ZLau92 committed Nov 30, 2020
  2. Update debugmenu.cpp

    one character got flubbed on its way over.
    ZLau92 committed Nov 30, 2020