• Show log

    Commit

  • Hash : 4266cf85
    Author : Leonardo Brondani Schenkel
    Date : 2023-01-04T13:46:01

    Add Linux mapping for 8BitDo Pro 2 Wired Controller for Xbox
    
    Without these mappings, this controller "kinda" works out of the box:
    - `SDL_GameControllerMapping()` works because it will notice "Xbox" in
      the name and use the default XInput mappings
    - `SDL_GameControllerMappingForGUID()` will not find any mapping
    
    lsusb:
    ```
    ID 2dc8:2000 8BitDo 8BitDo Pro 2 Wired Controller for Xbox
    ```
    
    In Linux this controller is supported by two drivers:
    - `xpad` (built-in to the kernel), exposes the controller name from the
      USB descriptor and the GUID starts with 03 (0x03 = BUS_USB)
    - `xone` (https://github.com/medusalix/xone), exposes a virtual
      controller which is always named "Microsoft X-Box One pad" and the
      GUID starts with 06 (0x06 = BUS_VIRTUAL)
    
    This commit adds the 2 GUIDs from both drivers so mappings will always
    be found and the real controller name will always be reported.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags

  • README.md

  • Simple DirectMedia Layer (SDL) Version 2.0

    https://www.libsdl.org/

    Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve’s award winning catalog and many Humble Bundle games.

    More extensive documentation is available in the docs directory, starting with README.md

    Enjoy!

    Sam Lantinga (slouken@libsdl.org)