1. 22 Jun, 2018 1 commit
    • Enno Boland's avatar
      Input: xpad - fix GPD Win 2 controller name · dd6bee81
      Enno Boland authored
      This fixes using the controller with SDL2.
      
      SDL2 has a naive algorithm to apply the correct settings to a controller.
      For X-Box compatible controllers it expects that the controller name
      contains a variation of a 'XBOX'-string.
      
      This patch changes the identifier to contain "X-Box" as substring.  Tested
      with Steam and C-Dogs-SDL which both detect the controller properly after
      adding this patch.
      
      Fixes: c1ba0839
      
       ("Input: xpad - add GPD Win 2 Controller USB IDs")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarEnno Boland <gottox@voidlinux.eu>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      dd6bee81
  2. 04 Jun, 2018 1 commit
  3. 08 May, 2018 2 commits
  4. 27 Mar, 2018 1 commit
  5. 22 Jan, 2018 1 commit
  6. 17 Jan, 2018 1 commit
  7. 12 Sep, 2017 1 commit
  8. 31 Aug, 2017 1 commit
  9. 08 Aug, 2017 1 commit
  10. 18 Jun, 2017 2 commits
  11. 07 May, 2017 3 commits
  12. 11 Apr, 2017 2 commits
  13. 07 Feb, 2017 1 commit
  14. 06 Feb, 2017 1 commit
  15. 06 Jan, 2017 4 commits
  16. 27 Dec, 2016 1 commit
  17. 28 Nov, 2016 2 commits
  18. 28 Jul, 2016 1 commit
  19. 29 Jun, 2016 1 commit
  20. 23 Jun, 2016 1 commit
    • Cameron Gutman's avatar
      Input: xpad - fix oops when attaching an unknown Xbox One gamepad · c7f14293
      Cameron Gutman authored
      Xbox One controllers have multiple interfaces which all have the
      same class, subclass, and protocol. One of the these interfaces
      has only a single endpoint. When Xpad attempts to bind to this
      interface, it causes an oops when trying initialize the output URB
      by trying to access the second endpoint's descriptor.
      
      This situation was avoided for known Xbox One devices by checking
      the XTYPE constant associated with the VID and PID tuple. However,
      this breaks when new or previously unknown Xbox One controllers
      are attached to the system.
      
      This change addresses the problem by deriving the XTYPE for Xbox
      One controllers based on the interface protocol before checking
      the interface number.
      
      Fixes: 1a48ff81
      
       ("Input: xpad - add support for Xbox One controllers")
      Signed-off-by: default avatarCameron Gutman <aicommander@gmail.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      c7f14293
  21. 01 Jun, 2016 1 commit
  22. 27 May, 2016 4 commits
  23. 05 Apr, 2016 1 commit
    • Silvan Jegen's avatar
      Input: xpad - add Mad Catz FightStick TE 2 VID/PID · d63b0f0c
      Silvan Jegen authored
      
      
      This adds the VID/PID combination for the Xbox One version of the Mad
      Catz FightStick TE 2.
      
      The functionality that this provides is about on par with what the
      Windows drivers for the stick manage to deliver.
      
      What works:
      - Digital stick
      - 6 main buttons
      - Xbox button
      - The two buttons on the back
      - The locking buttons (preventing accidental Xbox button press)
      
      What doesn't work:
      - Two of the main buttons (don't work on Windows either)
      - The "Haptic" button setting does not have an effect (not sure if it
        works on Windows)
      
      I added the MAP_TRIGGERS_TO_BUTTONS option but in my (limited) testing
      there was no practical difference with or without. The FightStick does
      not have triggers though so adding it makes sense.
      Signed-off-by: default avatarSilvan Jegen <s.jegen@gmail.com>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      d63b0f0c
  24. 27 Jan, 2016 1 commit
  25. 13 Jan, 2016 2 commits
  26. 04 Jan, 2016 2 commits